結果
| 問題 |
No.571 3人兄弟(その2)
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-02-01 23:09:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 470 bytes |
| コンパイル時間 | 2,066 ms |
| コンパイル使用メモリ | 198,456 KB |
| 最終ジャッジ日時 | 2025-01-18 10:47:16 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 4 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(ll i=0;i<n;i++)
int main(){
vector<pair<int,int>>P(3);
vector<pair<int,int>>Q(3);
for(int i=0;i<3;i++){
int h,w;
cin>>h>>w;
P[i]={h,w};
Q[i]=P[i];
}
sort(P.begin(),P.end());
for(int i=2;i>=0;i--){
for(int j=0;j<3;j++){
if(P[i].first==Q[j].first && P[i].second==Q[j].second){
cout<<char('A'+j)<<endl;
}
}
}
return 0;
}
chacoder1