結果
| 問題 | No.149 碁石の移動 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-08 23:17:12 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 163 bytes |
| 記録 | |
| コンパイル時間 | 336 ms |
| コンパイル使用メモリ | 85,372 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-03 20:18:36 |
| 合計ジャッジ時間 | 1,601 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
aw, ab = map(int, input().split())
bw, bb = map(int, input().split())
c, d = map(int, input().split())
if c > ab:
d -= c - ab
if d > bw:
d = bw
print(d+aw)