結果
問題 | No.149 碁石の移動 |
ユーザー | lloyz |
提出日時 | 2023-06-19 01:07:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 257 bytes |
コンパイル時間 | 369 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-26 11:41:10 |
合計ジャッジ時間 | 1,467 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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: ans = aw bb += c else: ans = aw - (c - ab) bb += ab bw += c - ab if d <= bw: ans += d else: ans += bw print(ans)