結果
問題 | No.1406 Test |
ユーザー |
|
提出日時 | 2024-04-12 22:41:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 316 bytes |
コンパイル時間 | 212 ms |
コンパイル使用メモリ | 81,896 KB |
実行使用メモリ | 53,572 KB |
最終ジャッジ日時 | 2024-10-02 23:35:16 |
合計ジャッジ時間 | 1,840 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
def main():n=int(input())if n!=1:a=list(map(int,input().split()))total=sum(a)else:total=0cnt=0# nで割ったあまりが0ならokfor i in range(0,101):if (total+i)%n==0:cnt+=1print(cnt)if __name__ == "__main__":main()