結果
問題 |
No.1940 Escape through + -
|
ユーザー |
|
提出日時 | 2025-09-03 16:01:28 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 3,244 ms |
コンパイル使用メモリ | 276,500 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-03 16:01:33 |
合計ジャッジ時間 | 4,837 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int N; int64_t M, S; cin >> N >> M >> S; vector<int64_t> A(N); for (auto &a : A) cin >> a; for (auto &a : A) S -= a; if (S % M == 0) cout << "Yes\n"; else cout << "No\n"; }