結果
問題 | No.571 3人兄弟(その2) |
ユーザー |
|
提出日時 | 2020-04-02 20:56:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 444 bytes |
コンパイル時間 | 1,743 ms |
コンパイル使用メモリ | 177,876 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 15:17:52 |
合計ジャッジ時間 | 2,376 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h>#define rep(i,n) for (int i=0; i<(n); ++i)using namespace std;using ll=long long;int main(){vector<int>h(3),w(3);rep(i,3){cin>>h[i]>>w[i];}vector<tuple<int,int,char>>t(3);t[0]=make_tuple(h[0],-w[0],'A');t[1]=make_tuple(h[1],-w[1],'B');t[2]=make_tuple(h[2],-w[2],'C');sort(t.rbegin(),t.rend());rep(i,3){char c=get<2>(t[i]);cout<<c<<endl;}}