Drew_is_me's blog

By Drew_is_me, 3 years ago, In English

The registration for Quick (fast) contest #1 has opened!

Sign up (register) now and invite your friends to compete with them!

https://codeforces.com/gymRegistration/103029

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Drew_is_me, 3 years ago, translation, In English

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://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

3) CommandMaster

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)))

Full text and comments »

Announcement of Quick (fast) contest #1
  • Vote: I like it
  • +223
  • Vote: I do not like it