結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
YamaKasa
|
| 提出日時 | 2019-08-23 15:32:59 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 1,503 ms |
| コンパイル使用メモリ | 171,020 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 14:22:29 |
| 合計ジャッジ時間 | 2,340 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int N;
cin >> N;
vector<ll> A(3);
string s;
for (int i = 0; i < N; i++) {
cin >> s;
if (s.find(" ")) {
cout << "assert\n";
return 0;
}
A[i] = atoll(s.c_str());
}
sort(A.begin(), A.end());
cout << A[0] + A[1] << "\n";
return 0;
}
YamaKasa