結果
問題 |
No.851 テストケース
|
ユーザー |
![]() |
提出日時 | 2019-08-23 16:03:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 525 bytes |
コンパイル時間 | 3,079 ms |
コンパイル使用メモリ | 174,156 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-13 14:24:17 |
合計ジャッジ時間 | 2,268 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 18 WA * 2 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string N; getline(cin, N); vector<ll> A(3); string s; for (int i = 0; i < 3; i++) { getline(cin, s); for (int j = 0; j < s.length(); j++) { if (s[j] == ' ') { cout << "assert\n"; return 0; } } A[i] = atoll(s.c_str()); } set<ll, greater<ll>> p; p.insert(A[0] + A[1]); p.insert(A[0] + A[2]); p.insert(A[1] + A[2]); auto it = p.begin(); it++; cout << *it << "\n"; return 0; }