結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-01 16:40:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 435 bytes |
| コンパイル時間 | 1,584 ms |
| コンパイル使用メモリ | 173,516 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 23:50:04 |
| 合計ジャッジ時間 | 2,463 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 18 WA * 2 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
using ll=long long;
int main(){
ll n;
cin>>n>>ws;
string s;
getline(cin,s);
if(s.find(' ')!=s.npos){
cout<<"assert"<<endl;
return 0;
}
ll a=atol(s.c_str()),b,c;
cin>>b>>c;
vector<ll>r({a+b,b+c,c+a});
sort(r.begin(),r.end());
if(r[2]==r[1])cout<<r[0]<<endl;
else cout<<r[1]<<endl;
}