結果

問題 No.745 letinopia raoha
ユーザー ohana
提出日時 2023-10-27 16:47:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,100 KB
実行使用メモリ 54,028 KB
最終ジャッジ日時 2024-09-25 13:04:33
合計ジャッジ時間 1,236 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d = map(int, input().split())

if 10 <= d:
    print("Impossible")
else:
    ans = 0
    print("Possible")
    for i in range(a + b):
        if b > 0:
            b -= 1
            ans += 50 * 2 ** (i // 100)
        else:
            ans += 100 * 2 ** (i // 100)
    print(ans)
0