結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-05-03 19:25:48 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 632 bytes |
| コンパイル時間 | 2,041 ms |
| コンパイル使用メモリ | 201,092 KB |
| 最終ジャッジ日時 | 2025-01-21 06:22:27 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 RE * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
#define int long long
string a[4];
int n[3];
signed main(void) {
getline(cin,a[0]);
getline(cin,a[1]);
getline(cin,a[2]);
getline(cin,a[3]);
if(a[2] == ""){
cout<<"\"assert\""<<endl;
return 0;
}
n[0]=stoi(a[1]);
n[1]=stoi(a[2]);
n[2]=stoi(a[3]);
//cout<<n[0]<<" "<<n[1]<<" "<<n[2]<<endl;
map<int,int>mp;
mp[-(n[0]+n[1])]++;
mp[-(n[2]+n[1])]++;
mp[-(n[0]+n[2])]++;
int cnt=0;
for(auto e:mp){
cnt++;
if(cnt==2){
cout<<-e.first<<endl;
return 0;
}
}
}
chacoder1