This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>3.1.5</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ThisBuild / version := "0.1.0-SNAPSHOT" | |
ThisBuild / scalaVersion := "2.13.10" | |
val circeVersion = "0.14.1" | |
lazy val root = (project in file(".")) | |
.settings( | |
name := "z2" | |
) | |
libraryDependencies += "dev.zio" %% "zio" % "2.0.18" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import java.lang.reflect.Array; | |
class Main5{ | |
public static int variantOne(String[] input, String desiredWord){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ForBro { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
var sum = 0; | |
var currentElement = sc.nextInt(); | |
do{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# all_letters = 'abcdefghijklmnopqrstuvwxyz' | |
# | |
# number_of_letters = int(input()) | |
# | |
# print(number_of_letters) | |
# for i in range(number_of_letters): | |
# q = all_letters[i] | |
# mySep = '' | |
# if i != 0: | |
# mySep = ',' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def doIt(): | |
n = int(input()) | |
max_digit = n % 10 | |
while n != 0: | |
digit = n % 10 | |
n = int(n / 10) | |
if digit % 3 == 0 and digit > max_digit: | |
max_digit = digit | |
if max_digit % 3 == 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == '__main__': | |
#вот отсюда начинается интересный тебе код (только пробелы слева убери shift-tab когда курсор на строке) | |
number_of_elements = int(input()) + 1 | |
current_number = 0 #вот тут у нас изменяемое число (его и будем печатать) | |
for x in range(number_of_elements): #этот цикл только для того чтобы напечатать высоту треугольника | |
#т.е., например, 6 строк | |
count = 0 | |
for y in range(x): #вот этот цикл печатает содержимое строки (просто пока у него есть что делать |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put your python code here | |
from math import sin, cos, tan, pi | |
x = float(input()) | |
xR = x * pi / 180 | |
y = sin(xR) + cos(xR) + tan(xR) ** 2 | |
print(y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put your python code here | |
import math | |
a = float(input()) | |
b = float(input()) | |
c = float(input()) | |
D = b * b - 4 * a * c | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# вот так делал я | |
# | |
# a = input() | |
# b = input() | |
# c = input() | |
# | |
# | |
# def sf(v): | |
# return len(v) | |
# |
NewerOlder