結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
Bantako
|
| 提出日時 | 2017-07-09 11:18:39 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 207 bytes |
| 記録 | |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 49,908 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-23 20:30:41 |
| 合計ジャッジ時間 | 1,319 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
ソースコード
#include<stdio.h>
#include<algorithm>
main(){
int x,y;
int x2,y2;
scanf("%d%d%d%d",&x,&y,&x2,&y2);
int step = std::max(x,y);
if(x==y && x2==y2 && x>x2){step++;}
printf("%d\n",step);
}
Bantako