LoginSignup
0
0

More than 3 years have passed since last update.

yukicoder contest 284 参戦記

Posted at

yukicoder contest 284 参戦記

A 1406 Test

0点から100点までの101パターン、平均点が整数になるかをチェックすればいいだけ.

N, *A = map(int, open(0).read().split())

if N == 1:
    print(101)
    exit()

a = sum(A)
result = 0
for i in range(100 + 1):
    if (i + a) % N == 0:
        result += 1
print(result)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0