結果
| 問題 | No.149 碁石の移動 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-25 12:24:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 240 bytes |
| コンパイル時間 | 632 ms |
| コンパイル使用メモリ | 53,980 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-25 05:47:30 |
| 合計ジャッジ時間 | 1,315 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 WA * 3 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
int A,a,B,b,C,D,ans;
cin>>A>>a>>B>>b>>C>>D;
ans=A;
if(a<C)ans-=(C-a);
B+=(C-a);
if(D<B)ans+=D;
else ans+=B;
cout<<ans<<endl;
fflush(stdin);
getchar();
return 0;
}