結果
問題 |
No.1940 Escape through + -
|
ユーザー |
👑 |
提出日時 | 2022-05-21 20:44:25 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 276 bytes |
コンパイル時間 | 521 ms |
コンパイル使用メモリ | 67,236 KB |
最終ジャッジ日時 | 2025-01-29 13:11:18 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include <iostream> using namespace std; int main(){ long long n,m,s;cin>>n>>m>>s; long long sm = 0; for(int i = 0; n > i; i++){ long long x;cin>>x; sm += x; } if(abs(sm-s)%m == 0)cout << "Yes" << endl; else cout << "No" << endl; }