結果
| 問題 |
No.149 碁石の移動
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-08 23:17:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 163 bytes |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 82,588 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-08-08 23:17:15 |
| 合計ジャッジ時間 | 2,159 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)