結果
| 問題 | No.1406 Test |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-12 22:41:49 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 2,000 ms |
| + 909µs | |
| コード長 | 316 bytes |
| 記録 | |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 64,908 KB |
| 実行使用メモリ | 53,536 KB |
| 最終ジャッジ日時 | 2026-10-20 21:52:17 |
| 合計ジャッジ時間 | 2,812 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge6_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
def main():
n=int(input())
if n!=1:
a=list(map(int,input().split()))
total=sum(a)
else:
total=0
cnt=0
# nで割ったあまりが0ならok
for i in range(0,101):
if (total+i)%n==0:
cnt+=1
print(cnt)
if __name__ == "__main__":
main()