結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
Baplisca
|
| 提出日時 | 2020-04-30 17:16:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 3,153 ms |
| コード長 | 1,969 bytes |
| コンパイル時間 | 2,809 ms |
| コンパイル使用メモリ | 198,508 KB |
| 最終ジャッジ日時 | 2025-01-10 03:41:27 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
//#define int long long
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<n;++i)
#define exrep(i, a, b) for(ll i = a; i < b; i++)
#define out(x) cout << x << endl
#define EPS (1e-7)
#define gearup ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<bool> vb;
typedef vector<double> vd;
typedef vector<string> vs;
typedef vector<pair<int,int> > vpii;
typedef vector<vector<int> > vvi;
typedef vector<vector<char> > vvc;
typedef vector<vector<bool> > vvb;
typedef vector<vector<double> > vvd;
typedef vector<vector<string> > vvs;
typedef vector<ll> vl;
typedef vector<vector<ll> > vvl;
typedef vector<vector<vector<ll> > > vvvl;
ll MOD = 1000000007;
const long long L_INF = 1LL << 60;
const int INF = 2147483647; // 2^31-1
const double PI = acos(-1);
//cout<<fixed<<setprecision(10);
template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}
template<class T> void debug(T v){rep(i,v.size()) cout<<v[i]<<" ";cout<<endl;}
const ll dx[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll dy[8] = {0, 1, 1, 1, 0, -1, -1, -1};
signed main()
{
gearup;
string n;getline(cin,n);
string s[3];
getline(cin,s[0]);
rep(i,s[0].size()){
if(s[0][i] == ' '){
out("\"assert\"");
return 0;
}
}
rep1(i,3)getline(cin,s[i]);
vl a(3);
rep(i,3){
ll sum = 0;
for(auto ss:s[i]){
sum *= 10;
sum += ss - '0';
}
a[i] = sum;
}
sort(all(a));
ll n1 = a[2]+a[1],n2 = a[2]+a[0],n3 = a[1]+a[0];
if(n1==n2)out(n3);
else out(n2);
}
Baplisca