結果
| 問題 |
No.149 碁石の移動
|
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-02-12 11:54:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 166 bytes |
| コンパイル時間 | 1,467 ms |
| コンパイル使用メモリ | 81,204 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-07-19 06:09:51 |
| 合計ジャッジ時間 | 1,887 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
a1,a2=map(int,input().split()) b1,b2=map(int,input().split()) c,d=map(int,input().split()) x1=max(c-a2,0);x2=min(a2,c) a1-=x1;a2-=x2 b1+=x1;b2+=x2 print(a1+min(d,b1))
あかりき