結果
問題 | No.851 テストケース |
ユーザー |
![]() |
提出日時 | 2020-01-26 18:58:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 1,910 ms |
コンパイル使用メモリ | 172,100 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-14 11:16:12 |
合計ジャッジ時間 | 2,809 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 7 WA * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; int main() { ll n; cin>>n; string s; getline(cin,s);getline(cin,s); for(ll i=0;i<s.size();++i){ if(s[i]==' '){ cout<<"\"assert\""<<endl; return 0; } } vector<ll> a(2); for(int i=0;i<2;++i){ cin>>a[i]; } a[2]=stoll(s); sort(a.begin(),a.end()); ll sum=a[1]+a[2]; cout<<sum<<endl; }