結果
| 問題 |
No.571 3人兄弟(その2)
|
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-02-28 19:07:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 1,849 ms |
| コンパイル使用メモリ | 175,052 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 16:31:27 |
| 合計ジャッジ時間 | 2,243 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
#include<bits/stdc++.h>
int main(){
std::vector<std::tuple<int,int,int>>a(3);
for(int i=0;i<3;i++){
int x,y;std::cin>>x>>y;
a.at(i)=std::make_tuple(-x,y,i);
}
std::sort(a.begin(),a.end());
for(int i=0;i<3;i++){
std::cout<<(char)('A'+std::get<2>(a.at(i)))<<std::endl;
}
}
ngtkana