結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-04-15 17:15:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 417 bytes |
| コンパイル時間 | 1,705 ms |
| コンパイル使用メモリ | 175,188 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-01 18:54:55 |
| 合計ジャッジ時間 | 2,690 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 RE * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
template<typename T>
void fin(T a){
cout<<a<<endl;
exit(0);
}
signed main(){
string n,s;getline(cin,n);getline(cin,s);
for(char p:s)if(p==' ')fin("\"assert\"");
int a,b,c;cin>>a>>b;c=stoi(s);
set<int> se;
se.insert(a+b);
se.insert(b+c);
se.insert(a+c);
vector<int> v;for(int p:se)v.push_back(p);
cout<<v[v.size()-2]<<endl;
}
cureskol