結果
問題 | No.1406 Test |
ユーザー |
![]() |
提出日時 | 2021-03-23 09:32:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 1,501 ms |
コンパイル使用メモリ | 167,024 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-25 01:18:22 |
合計ジャッジ時間 | 2,547 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){int N;cin >> N;int s = 0;for( int i = 0; i < N - 1; i++ ) {int A;cin >> A;s += A;}int ans = 0;for( int n = 0; n <= 100; n++ ) {if( (s + n) % N == 0 ) ans++;}cout << ans << endl;}