結果
問題 |
No.842 初詣
|
ユーザー |
![]() |
提出日時 | 2022-01-20 11:54:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 349 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-11-23 14:39:05 |
合計ジャッジ時間 | 1,975 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
a,b,c,d,e,f,G=map(int,input().split()) n=[a,b,c,d,e,f] ns=[500,100,50,10,5,1] for i in range(len(n)): cnt=0 while n[i]-cnt > 0: cnt+=1 if G-ns[i] >= 0: G-=ns[i] else: break if G==0: print('YES') else: print('NO')