結果
| 問題 | No.842 初詣 |
| コンテスト | |
| ユーザー |
pete1288998
|
| 提出日時 | 2020-06-21 18:34:30 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 94 ms / 2,000 ms |
| + 980µs | |
| コード長 | 486 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-12 06:16:14 |
| 合計ジャッジ時間 | 1,987 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
c = list(map(int,input().split()))
C = c[:-1]
g = c[-1]
for a in range(C[0]+1):
for b in range(C[1]+1):
for c in range(C[2]+1):
for d in range(C[3]+1):
for e in range(C[4]+1):
for f in range(C[5]+1):
total = 500*a + 100*b + 50*c + 10*d + 5*e + 1*f
if total == g:
print('YES')
exit()
print('NO')
pete1288998