結果
問題 |
No.1940 Escape through + -
|
ユーザー |
![]() |
提出日時 | 2022-07-31 11:57:30 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 118 ms |
コンパイル使用メモリ | 29,184 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 22:37:47 |
合計ジャッジ時間 | 1,789 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include<stdio.h> int main() { long long int n, m, s; scanf("%lld %lld %lld", &n, &m, &s); long long int i; long long int a[100005]; for (i = 0; i < n; i++) scanf("%lld", &a[i]); long long int sum = 0; for (i = 0; i < n; i++) sum += a[i]; if ((s - sum) % m == 0) printf("Yes\n"); else printf("No\n"); return 0; }