結果

問題 No.745 letinopia raoha
ユーザー 👑 rin204
提出日時 2021-08-26 18:57:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 81,988 KB
実行使用メモリ 53,580 KB
最終ジャッジ日時 2024-11-18 12:57:46
合計ジャッジ時間 1,258 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d = map(int, input().split())
if d == 10:
    print("Impossible")
    exit()
    
score = 0
cnt = 0
times = 1
for _ in range(b):
    score += 50 * times
    cnt += 1
    if cnt == 100:
        cnt = 0
        times *= 2
        
for _ in range(a):
    score += 100 * times
    cnt += 1
    if cnt == 100:
        cnt = 0
        times *= 2
print("Possible")
print(score)
0