結果
問題 | No.1940 Escape through + - |
ユーザー |
![]() |
提出日時 | 2022-05-18 20:51:48 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 2,103 ms |
コンパイル使用メモリ | 191,952 KB |
最終ジャッジ日時 | 2025-01-29 09:12:00 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int n; ll m, s; cin >> n >> m >> s; for (int i = 0; i < n; i++) { int a; cin >> a; s -= a; } cout << (s % m == 0 ? "Yes" : "No") << endl; return 0; }