結果
問題 |
No.149 碁石の移動
|
ユーザー |
![]() |
提出日時 | 2018-02-21 14:05:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 313 bytes |
コンパイル時間 | 613 ms |
コンパイル使用メモリ | 71,732 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-15 08:33:35 |
合計ジャッジ時間 | 1,480 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 7 WA * 6 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<string> #include<cmath> #include<cstdio> using namespace std; int main(){ int AW,AB,BW,BB,C,D; cin >> AW >> AB >> BW >> BB >> C >> D; if(AB<C) AW += (AB-C); if(BW>D) AW += D; else AW+=BW; cout << AW; return 0; }