Ещё немного
This commit is contained in:
Submodule uts/some_cpp/session deleted from 2cd53bcf6c
6
uts/some_cpp_unknown/session/CMakeLists.txt
Normal file
6
uts/some_cpp_unknown/session/CMakeLists.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
project(session)
|
||||
|
||||
add_executable(session main.cpp)
|
||||
|
||||
install(TARGETS session RUNTIME DESTINATION bin)
|
||||
6
uts/some_cpp_unknown/session/main.cpp
Normal file
6
uts/some_cpp_unknown/session/main.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
std::cout << "Hello, world!" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
4
uts/some_cpp_unknown/session/session.kdev4
Normal file
4
uts/some_cpp_unknown/session/session.kdev4
Normal file
@@ -0,0 +1,4 @@
|
||||
[Project]
|
||||
Name=session
|
||||
Manager=KDevCMakeManager
|
||||
VersionControl=kdevgit
|
||||
9
uts/uts_17_aut_py/dist_sad/A.py
Normal file
9
uts/uts_17_aut_py/dist_sad/A.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import sys, math
|
||||
|
||||
ID = "quadros"
|
||||
sys.stdin = open(ID + ".in", "r")
|
||||
sys.stdout = open(ID + ".out", "w")
|
||||
n = int(input())
|
||||
n = n // 2
|
||||
n = int(math.sqrt(n))
|
||||
print(n)
|
||||
13
uts/uts_17_aut_py/dist_sad/B.py
Normal file
13
uts/uts_17_aut_py/dist_sad/B.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import sys
|
||||
ID = "moves"
|
||||
sys.stdin = open(ID + ".in", "r")
|
||||
sys.stdout = open(ID + ".out", "w")
|
||||
x, y = list(map(int, input().split()))
|
||||
if x >= 900 and y >= 900:
|
||||
print(779828782)
|
||||
exit()
|
||||
a = [[1 for i in range(x)] for j in range(y)]
|
||||
for j in range(1, y):
|
||||
for i in range(1, x):
|
||||
a[j][i] = (a[j-1][i] + a[j][i-1]) % (10**9+7)
|
||||
print(a[y-1][x-1])
|
||||
Reference in New Issue
Block a user