結果
| 問題 | No.571 3人兄弟(その2) | 
| コンテスト | |
| ユーザー |  chacoder1 | 
| 提出日時 | 2021-02-01 23:14:44 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 506 bytes | 
| コンパイル時間 | 2,892 ms | 
| コンパイル使用メモリ | 197,964 KB | 
| 最終ジャッジ日時 | 2025-01-18 10:47:24 | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
#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;
    w*=-1;
    P[i]={h,w};
    Q[i]=P[i];
  }
  sort(P.begin(),P.end(),greater<pair<int,int> >());
  for(int i=0;i<3;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;
}
            
            
            
        