結果

問題 No.1940 Escape through + -
ユーザー ch1channnch1channn
提出日時 2023-01-24 15:04:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 466 bytes
コンパイル時間 1,361 ms
コンパイル使用メモリ 86,588 KB
実行使用メモリ 90,008 KB
最終ジャッジ日時 2023-09-08 10:16:56
合計ジャッジ時間 5,377 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,040 KB
testcase_01 AC 75 ms
71,076 KB
testcase_02 AC 75 ms
71,148 KB
testcase_03 AC 78 ms
71,100 KB
testcase_04 AC 75 ms
71,088 KB
testcase_05 AC 73 ms
71,216 KB
testcase_06 AC 74 ms
71,084 KB
testcase_07 AC 72 ms
71,020 KB
testcase_08 AC 73 ms
71,216 KB
testcase_09 AC 73 ms
70,988 KB
testcase_10 AC 74 ms
71,080 KB
testcase_11 AC 73 ms
71,212 KB
testcase_12 AC 72 ms
71,236 KB
testcase_13 AC 72 ms
71,368 KB
testcase_14 AC 71 ms
71,240 KB
testcase_15 AC 73 ms
71,092 KB
testcase_16 AC 73 ms
70,944 KB
testcase_17 AC 73 ms
71,116 KB
testcase_18 AC 74 ms
71,148 KB
testcase_19 AC 73 ms
71,360 KB
testcase_20 AC 87 ms
75,556 KB
testcase_21 AC 80 ms
75,832 KB
testcase_22 AC 79 ms
75,672 KB
testcase_23 AC 77 ms
75,412 KB
testcase_24 AC 95 ms
89,772 KB
testcase_25 AC 95 ms
89,428 KB
testcase_26 AC 94 ms
89,812 KB
testcase_27 AC 95 ms
90,008 KB
testcase_28 AC 97 ms
89,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
if sys.platform =='ios':
	import clipboard
	a=clipboard.get()
	a = a.split('\n')
	text = '\n'.join(a)
	with open('input_file.txt','w') as f:
		f.write(text)
	sys.stdin = open('input_file.txt')
sys.setrecursionlimit(4100000)
stdin = sys.stdin 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()

N,M,S = map(int,input().split())
A = na()
if (S-sum(A))%M == 0:
	print("Yes")
else:
	print("No")
0