結果

問題 No.1940 Escape through + -
ユーザー titan23titan23
提出日時 2022-06-24 09:51:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 82,204 KB
実行使用メモリ 84,440 KB
最終ジャッジ日時 2024-04-25 15:38:27
合計ジャッジ時間 2,699 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
54,304 KB
testcase_01 AC 35 ms
52,028 KB
testcase_02 AC 36 ms
53,804 KB
testcase_03 AC 36 ms
52,492 KB
testcase_04 AC 36 ms
52,924 KB
testcase_05 AC 34 ms
52,872 KB
testcase_06 AC 34 ms
53,288 KB
testcase_07 AC 35 ms
51,832 KB
testcase_08 AC 34 ms
52,528 KB
testcase_09 AC 34 ms
52,252 KB
testcase_10 AC 33 ms
51,752 KB
testcase_11 AC 35 ms
53,232 KB
testcase_12 AC 34 ms
52,764 KB
testcase_13 AC 34 ms
51,752 KB
testcase_14 AC 35 ms
52,748 KB
testcase_15 AC 35 ms
52,556 KB
testcase_16 AC 34 ms
52,828 KB
testcase_17 AC 33 ms
51,964 KB
testcase_18 AC 34 ms
52,120 KB
testcase_19 AC 35 ms
53,352 KB
testcase_20 AC 39 ms
62,016 KB
testcase_21 AC 39 ms
62,084 KB
testcase_22 AC 39 ms
60,648 KB
testcase_23 AC 40 ms
61,684 KB
testcase_24 AC 59 ms
83,160 KB
testcase_25 AC 58 ms
82,860 KB
testcase_26 AC 59 ms
83,152 KB
testcase_27 AC 60 ms
84,440 KB
testcase_28 AC 58 ms
84,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

n, m, s = map(int, input().split())
A = list(map(int, input().split()))
sm = sum(A)
if (s - sm) % m == 0:
  print('Yes')
else:
  print('No')
0