結果
問題 |
No.1406 Test
|
ユーザー |
![]() |
提出日時 | 2021-02-28 18:28:15 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 21 ms / 2,000 ms |
コード長 | 353 bytes |
コンパイル時間 | 727 ms |
コンパイル使用メモリ | 66,736 KB |
最終ジャッジ日時 | 2025-01-19 08:12:19 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#include <iostream> using namespace std; int main(){ int n; cin >> n; int sum = 0; for(int i = 0; i < n - 1; ++i){ int t; cin >> t; sum += t; } int ans = 0; for(int i = 0; i <= 100; ++i){ if((sum + i) % n == 0){ ++ans; } } cout << ans << endl; return 0; }