Все задачи на 5.10.17 13:00
This commit is contained in:
1 parent
93746b05d7
commit
ca2ca71f63
120 files changed
+2343
No files matched your search
@@ -0,0 +1,4 @@
|
||||
ser = int(input())
|
||||
mas = list(map(int, input().split()))
|
||||
mas.sort()
|
||||
print(*mas)
|
||||
@@ -0,0 +1,9 @@
|
||||
ser = int(input())
|
||||
mas = list(map(int, input().split()))
|
||||
cnt = 0
|
||||
for i in range(ser):
|
||||
srav = mas[i]
|
||||
for j in range(i, ser):
|
||||
if srav > mas[j]:
|
||||
cnt += 1
|
||||
print(cnt)
|
||||
@@ -0,0 +1,11 @@
|
||||
ser = int(input())
|
||||
ner = list(map(int, input().split()))
|
||||
ner.sort()
|
||||
if ser % 2 != 0:
|
||||
print(ner[ser // 2])
|
||||
else:
|
||||
ma = (ser // 2) - 1
|
||||
mi = (ser // 2)
|
||||
lg = ner[mi] + ner[ma]
|
||||
kek = lg / 2
|
||||
print(kek)
|
||||
@@ -0,0 +1 @@
|
||||
print(*range(1, int(input())+1))
|
||||
Reference in new issue
Block a user