結果
| 問題 |
No.1057 素敵な日
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-22 21:22:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 164 bytes |
| コンパイル時間 | 467 ms |
| コンパイル使用メモリ | 63,176 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-05 14:34:30 |
| 合計ジャッジ時間 | 894 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
int a,b;
main()
{
cin>>a>>b;
if(a>b)cout<<b*2<<endl;
else if(a==b)cout<<a+b-1<<endl;
else cout<<a*2<<endl;
}