結果
| 問題 | No.1940 Escape through + - |
| ユーザー |
|
| 提出日時 | 2023-01-24 15:04:58 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 79 ms / 2,000 ms |
| + 907µs | |
| コード長 | 466 bytes |
| 記録 | |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 97,280 KB |
| 最終ジャッジ日時 | 2026-07-30 06:58:22 |
| 合計ジャッジ時間 | 4,103 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
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")