結果
問題 | No.149 碁石の移動 |
ユーザー |
👑 |
提出日時 | 2020-01-18 16:39:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 680 ms |
コンパイル使用メモリ | 62,464 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 16:21:24 |
合計ジャッジ時間 | 1,894 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
#include <iostream> using namespace std; int main(){ int a,b,c,d,e,f;cin>>a>>b>>c>>d>>e>>f; if(b < e){ d += b; c += (e-b); a -= (e-b); b = 0; }else{ d += e; b -= e; } if(c < f){ cout << a+c << endl; }else{ cout << a+f << endl; } }