結果
問題 |
No.2451 Redistribute Integers
|
ユーザー |
![]() |
提出日時 | 2023-09-29 14:55:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 1,543 ms |
コンパイル使用メモリ | 168,336 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 11:08:32 |
合計ジャッジ時間 | 4,336 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> a( N ); long long s = 0; for( int i = 0; i < N; i++ ) { cin >> a[i]; s += a[i]; } string ans = "Yes"; if( abs( s ) % N ) ans = "No"; cout << ans << endl; }