結果
| 問題 | No.149 碁石の移動 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-18 16:39:09 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 327 bytes |
| 記録 | |
| コンパイル時間 | 554 ms |
| コンパイル使用メモリ | 73,664 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-15 17:16:45 |
| 合計ジャッジ時間 | 1,514 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}