結果
問題 | No.920 あかあお |
ユーザー | kotatsugame |
提出日時 | 2019-11-08 22:18:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 583 ms |
コンパイル使用メモリ | 63,972 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-23 03:41:36 |
合計ジャッジ時間 | 1,086 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
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 a,b,c;cin>>a>>b>>c; if(a>b)a^=b^=a^=b; if(b-a>c) { cout<<a+c<<endl; } else { cout<<b+(c-b+a)/2<<endl; } }