結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-04-15 17:14:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 420 bytes |
| コンパイル時間 | 2,005 ms |
| コンパイル使用メモリ | 176,172 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-10-01 18:54:51 |
| 合計ジャッジ時間 | 2,714 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 WA * 16 |
ソースコード
#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=(s[0]-'0');
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