結果
問題 | No.1406 Test |
ユーザー |
![]() |
提出日時 | 2023-06-21 20:59:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 1,990 ms |
コンパイル使用メモリ | 192,312 KB |
最終ジャッジ日時 | 2025-02-14 23:52:34 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ int N, S=0, A, ans=0; cin >> N; for (int i=0; i<N-1; i++){ cin >> A; S += A; } for (int i=0; i<=100; i++){ if ((S+i) % N == 0) ans++; } cout << ans << endl; return 0; }