結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
YamaKasa
|
| 提出日時 | 2019-08-23 16:01:09 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 512 bytes |
| コンパイル時間 | 1,775 ms |
| コンパイル使用メモリ | 172,936 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 14:24:10 |
| 合計ジャッジ時間 | 2,585 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 13 WA * 7 |
ソースコード
#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> 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;
}
YamaKasa