結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-27 19:42:21 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 518 bytes |
| コンパイル時間 | 946 ms |
| コンパイル使用メモリ | 88,312 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-24 20:19:08 |
| 合計ジャッジ時間 | 2,057 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 16 WA * 4 |
ソースコード
#include<iostream>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<set>
#include<map>
using namespace std;
typedef long long ll;
int main() {
int n,a[3]={};
cin >> n;
string s;
getline(cin,s);
for(auto p:s) {
if(p==' ') {
cout << "assert" << endl;
return 0;
}
}
for(int i=0; i<3; i++) {
cin >> a[i];
}
set<int> st;
st.insert(a[0]+a[1]);
st.insert(a[0]+a[2]);
st.insert(a[1]+a[2]);
auto it=st.end();
it--;
it--;
cout << *it << endl;
}