結果
問題 | No.745 letinopia raoha |
ユーザー | 夕叢霧香(ゆうむらきりか) |
提出日時 | 2018-10-19 21:40:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 57,728 KB |
最終ジャッジ日時 | 2024-04-29 15:34:10 |
合計ジャッジ時間 | 1,125 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 41 ms
51,456 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 38 ms
51,584 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 39 ms
51,712 KB |
ソースコード
a,b,c,d=map(int,input().split()) if d>=10: print('Impossible') exit() p=[] for i in range(a): p.append(100) for i in range(b): p.append(50) for i in range(c): p.append(0) ans=0 p.sort() tap=1 for i in range(len(p)): ans+=tap*p[i] if i%100==99: tap*=2 print('Possible') print(ans)