結果
問題 |
No.1940 Escape through + -
|
ユーザー |
![]() |
提出日時 | 2022-07-15 12:10:49 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 3,392 ms |
コンパイル使用メモリ | 245,824 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 06:40:01 |
合計ジャッジ時間 | 4,584 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int N,M,K; cin>>N>>M>>K; vector<int> S(N); for(int i=0;i<N;i++) cin>>S[i]; int sum = 0; for(int i=0;i<N;i++) sum += S[i]; if((sum-K)%M == 0) cout<<"Yes"<<endl; else cout<<"No"<<endl; }