結果
問題 |
No.571 3人兄弟(その2)
|
ユーザー |
|
提出日時 | 2020-06-20 12:40:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 434 bytes |
コンパイル時間 | 1,961 ms |
コンパイル使用メモリ | 183,296 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-03 17:05:10 |
合計ジャッジ時間 | 2,365 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<(n); i++) #define all(x) (x).begin(),(x).end() int main(){ int n=3; vector<tuple<int,int, string>> vt; int a,b; string c; cin>>a>>b; a*=-1; c="A"; vt.emplace_back(a,b,c); cin>>a>>b; a*=-1; c="B"; vt.emplace_back(a,b,c); cin>>a>>b; a*=-1; c="C"; vt.emplace_back(a,b,c); sort(all(vt)); for(auto x:vt) cout << get<string>(x) << endl; }