結果
| 問題 |
No.571 3人兄弟(その2)
|
| コンテスト | |
| ユーザー |
mmn15277198
|
| 提出日時 | 2020-07-15 22:10:30 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 875 bytes |
| コンパイル時間 | 1,048 ms |
| コンパイル使用メモリ | 96,976 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-22 14:36:52 |
| 合計ジャッジ時間 | 1,716 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
#pragma GCC optimize("Ofast")
#include<iostream>
#include<stdio.h>
#include<algorithm>
#include<vector>
#include<string.h>
#include<math.h>
#include<map>
#include<iomanip>
#include<queue>
const long long INF_L = 1e17+7;
const long long INF_I = 1e9+7;
const long long MOD = 1e9+7;
const double EPS = 1e-8;
const double PI=acos(-1);
using namespace std;
struct A{
int h;
int w;
char n;
};
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
struct A a[3];
for(int i=0;i<3;i++){
cin >> a[i].h >> a[i].w;
a[i].n=(char)('A'+i);
}
for(int i=0;i<2;i++){
for(int j=i+1;j<3;j++){
struct A temp;
if(a[i].h < a[j].h){
temp=a[i];
a[i]=a[j];
a[j]=temp;
}else if(a[i].h == a[j].h){
if(a[i].w > a[j].w){
temp=a[j];
a[j]=a[i];
a[i]=temp;
}
}
}
}
for(int i=0;i<3;i++){
cout << a[i].n << endl;
}
return 0;
}
mmn15277198