結果
問題 |
No.851 テストケース
|
ユーザー |
|
提出日時 | 2019-08-01 20:21:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 441 bytes |
コンパイル時間 | 2,130 ms |
コンパイル使用メモリ | 195,232 KB |
最終ジャッジ日時 | 2025-01-07 10:30:13 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin>>n; string s; getline(cin, s); if (count(s.begin(), s.end(), ' ') > 0) { cout << "\"assert\"" << endl; return 0; } int a, b, c; a = stoi(s); cin>>b>>c; if (a==b||a==c||b==c) cout << min(a, b) + min(b, c) << endl; else cout << min(a, min(b, c)) + max(a, max(b, c)) << endl; return 0; }