結果
問題 | No.745 letinopia raoha |
ユーザー |
|
提出日時 | 2022-05-13 21:03:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 523 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-22 00:18:58 |
合計ジャッジ時間 | 1,386 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
a, b, c, d = map(int, input().split()) if d >= 10: print("Impossible") else: print("Possible") ans = 0 qb, rb = divmod(b, 100) for i in range(qb + 1): if i == qb: ans += rb * 50 * 2**i else: ans += 100 * 50 * 2**i qa, ra = divmod(a + b, 100) for i in range(qb, qa + 1): if i == qa: ans += ra * 100 * 2**i elif i == qb: ans += (100 - rb) * 100 * 2**i else: ans += 100 * 100 * 2**i print(ans)