結果
問題 |
No.851 テストケース
|
ユーザー |
![]() |
提出日時 | 2020-02-11 11:25:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 458 bytes |
コンパイル時間 | 678 ms |
コンパイル使用メモリ | 73,676 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-01 07:15:44 |
合計ジャッジ時間 | 1,594 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 RE * 2 |
ソースコード
#include <iostream> #include <string> #include <set> using namespace std; int main(void) { string n; getline(cin, n); string s, t, u; getline(cin, s); if (s.find(' ') != string::npos) { cout << "\"assert\"" << endl; exit(0); } getline(cin, t); getline(cin, u); int a = stoi(s), b = stoi(t), c = stoi(u); set<int> st; st.insert(a + b), st.insert(b + c), st.insert(c + a); auto itr = st.end(); --itr, --itr; cout << *itr << endl; return 0; }