結果
問題 |
No.851 テストケース
|
ユーザー |
![]() |
提出日時 | 2020-04-15 17:12:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 411 bytes |
コンパイル時間 | 1,831 ms |
コンパイル使用メモリ | 174,468 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 18:54:43 |
合計ジャッジ時間 | 2,719 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); if(s.size()>2)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; }