結果
問題 | No.571 3人兄弟(その2) |
ユーザー |
![]() |
提出日時 | 2017-10-08 20:40:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 1,873 ms |
コンパイル使用メモリ | 179,212 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 05:48:09 |
合計ジャッジ時間 | 2,247 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
#include<bits/stdc++.h>using namespace std;typedef tuple<int,int,char> T;int main(){int h,w;vector<T> v;for(int i=0;i<3;i++){cin >> h >> w;v.push_back(make_tuple(h,-w,'A'+i));}sort(v.rbegin(),v.rend());for(int i=0;i<3;i++){cout << get<2>(v[i]) << endl;}return 0;}