結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
![]() |
提出日時 | 2022-02-10 23:45:13 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 552 bytes |
コンパイル時間 | 1,764 ms |
コンパイル使用メモリ | 174,124 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 07:14:47 |
合計ジャッジ時間 | 2,280 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define rep(i,a,b) for(LL i = a;i<b; i++)#define rrep(i,a,b) for(LL i = a;i>b; i--)#define INF ((1LL<<62)-(1LL<<31))#define ooki 9,223,372,036,854,775,807#define tii -9,223,372,036,854,775,808typedef long long LL;int main(){vector<pair<int,char>> f(3);int n;cin >> n;f[0]={n,'A'};cin>>n;f[1]={n,'B'};cin>>n;f[2]={n,'C'};sort(f.begin(),f.end());reverse(f.begin(),f.end());rep(i,0,3){cout<<f[i].second<<endl;}}