結果
問題 |
No.851 テストケース
|
ユーザー |
![]() |
提出日時 | 2020-02-11 11:28:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 3,153 ms |
コード長 | 473 bytes |
コンパイル時間 | 590 ms |
コンパイル使用メモリ | 72,212 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 07:15:47 |
合計ジャッジ時間 | 1,236 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#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); long long a = stoll(s), b = stoll(t), c = stoll(u); set<long long> st; st.insert(a + b), st.insert(b + c), st.insert(c + a); auto itr = st.end(); --itr, --itr; cout << *itr << endl; return 0; }