結果

問題 No.851 テストケース
ユーザー minimamu21
提出日時 2020-04-01 16:38:28
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 394 bytes
コンパイル時間 1,938 ms
コンパイル使用メモリ 173,816 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-26 23:47:32
合計ジャッジ時間 2,797 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 15 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
using ll=long long;
int main(){
    ll n;
    cin>>n>>ws;
    string s;
    getline(cin,s);
    if(s.find(' ')!=s.npos){
        cout<<"assert"<<endl;
        return 0;
    }
    ll a=atol(s.c_str()),b,c; 
    cin>>b>>c;
    vector<ll>r({a+b,b+c,c+a});
    sort(r.begin(),r.end());
    cout<<r[1]<<endl;
}
0