The registration for Quick (fast) contest #1 has opened!
Sign up (register) now and invite your friends to compete with them!
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
The registration for Quick (fast) contest #1 has opened!
Sign up (register) now and invite your friends to compete with them!
Good afternoon, I am happy to announce a new type of speed training contests!
This is an absolute new format on Codeforces, which I have come up with and will implement. In each of the contests there will be 2-4 problems that need to be solved in 15 minutes, the competition format will be ICPC. The tasks will be in both Russian and English. The main idea of these contests is to learn how to solve simple ideological problems quickly. The contests will be available in the Training Sessions, and the time of the contest will be the same for all of them. The first contest will take place on March 31 (preliminary time 16:35 Greenwich Mean time), very soon it will appear in training, so I invite everyone to take part in this first-of-its-kind contest!
Upd1: This contest will be in gym uploaded by my friend codeforces_administrator
Upd2: You can see Quick (fast) contest #1 now in gym!
The registration opens 6 hours before the start!
Upd3: The registration for Quick (fast) contest #1 has opened! Sign up (register) now and invite your friends to compete with them!
https://mirror.codeforces.com/gymRegistration/103029
UPD4: Sorry, right now we can't do the editorial, cause that's just our first experience in this kind of contest, but we are happy to make some results: Congrats to winners!
1) mars4 -- The only person who solved all the tasks without a single penalty. Congrats!
2) Kira_1234
4) AnandOza
5) bulbunyuk
And as it is speed contest we also want to congratulate people with "First-AC"
A) AnandOza
B) AnandOza
C) clam
D) AnandOza
Code for A:
n, x = map(int, input().split())
ar1 = list(map(int, input().split()))
k = int(input())
ar2 = list(map(int, input().split()))
kek = set()
for elem in ar2:
kek.add(elem)
ans = 1
for i in range(n):
if i + 1 not in kek:
ans += ar1[i]
print(ans)
Code for B:
n = int(input())
if n == 1:
print('Win')
elif n == 2:
print('Draw')
else:
print('Lose')
Code for C:
a, b = map(int, input().split())
if a >= b:
if b == 0:
print(2 * a + 1)
else:
print(0)
else:
if 2 * a > b:
print(0)
else:
print(b + 1)
Code for D:
from math import sqrt
n, m = list(map(int, input().split()))
c = sqrt(3)
print(max(int(2 * n / c) * (2 * m - 1), int(2 * m / c) * (2 * n - 1)))
Name |
---|