Skip to content

Instantly share code, notes, and snippets.

View XGZzs0ocFyf1's full-sized avatar

Alexey Gurzhiy XGZzs0ocFyf1

View GitHub Profile
@XGZzs0ocFyf1
XGZzs0ocFyf1 / pom.xml
Created November 20, 2023 16:59
just simple pom xml
<?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>
@XGZzs0ocFyf1
XGZzs0ocFyf1 / build.sbt
Created October 6, 2023 17:46
билд
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"
@XGZzs0ocFyf1
XGZzs0ocFyf1 / example.java
Created September 9, 2023 16:13
find needle in haystack
package org.example;
import java.lang.reflect.Array;
class Main5{
public static int variantOne(String[] input, String desiredWord){
public class ForBro {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
var sum = 0;
var currentElement = sc.nextInt();
do{
@XGZzs0ocFyf1
XGZzs0ocFyf1 / printletters.py
Last active June 25, 2023 14:46
print some letters
# 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 = ','
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:
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): #вот этот цикл печатает содержимое строки (просто пока у него есть что делать
# 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)
# put your python code here
import math
a = float(input())
b = float(input())
c = float(input())
D = b * b - 4 * a * c
# вот так делал я
#
# a = input()
# b = input()
# c = input()
#
#
# def sf(v):
# return len(v)
#