結果
| 問題 |
No.149 碁石の移動
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-21 21:13:22 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 154 bytes |
| コンパイル時間 | 513 ms |
| コンパイル使用メモリ | 64,212 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 14:00:46 |
| 合計ジャッジ時間 | 1,461 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 3 WA * 10 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
ソースコード
#include<iostream>
using namespace std;
main(){
int a1,a2,b1,b2,c,d;cin>>a1>>a2>>b1>>b2>>c>>d;
cout<<(c>d?a1-(a2<c-d?c-d:0):a1+(b1>d-c?d-c:b1))<<endl;
}