結果
| 問題 | No.149 碁石の移動 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-21 21:13:22 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 154 bytes |
| 記録 | |
| コンパイル時間 | 509 ms |
| コンパイル使用メモリ | 72,816 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-25 07:48:44 |
| 合計ジャッジ時間 | 1,980 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}