結果
| 問題 | No.851 テストケース |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-01 16:38:28 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 394 bytes |
| 記録 | |
| コンパイル時間 | 3,781 ms |
| コンパイル使用メモリ | 189,740 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-13 22:52:06 |
| 合計ジャッジ時間 | 2,878 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 15 WA * 5 |
ソースコード
#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());
cout<<r[1]<<endl;
}