結果
問題 |
No.2451 Redistribute Integers
|
ユーザー |
![]() |
提出日時 | 2023-10-05 02:34:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 408 bytes |
コンパイル時間 | 855 ms |
コンパイル使用メモリ | 103,632 KB |
最終ジャッジ日時 | 2025-02-17 04:21:12 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 6 |
ソースコード
#include<iostream> #include<iomanip> #include<string> #include<algorithm> #include<vector> #include<set> #include<list> #include<queue> #include<math.h> #include<bitset> using ll = long long; using namespace std; int main(){ ll n, cnt = 0; cin >> n; for (int i = 0; i < n; i++){ ll t; cin >> t; cnt += t; } cout << ((cnt % n == 0) ? "Yes" : "No") << endl; }