結果
| 問題 | No.570 3人兄弟(その1) | 
| コンテスト | |
| ユーザー |  Kurichan0806 | 
| 提出日時 | 2017-10-31 17:57:45 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 396 bytes | 
| コンパイル時間 | 661 ms | 
| コンパイル使用メモリ | 67,104 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-22 11:05:45 | 
| 合計ジャッジ時間 | 1,123 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 5 | 
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
using namespace std;
int main(void) {
	int x;
	string str = "ABC";
	vector <pair<int, char>> v;
	for (int i = 0; i < 3; i++) {
		cin >> x;
		v.push_back({ x,str[i] });
	}
	sort(v.begin(), v.end());
	reverse(v.begin(),v.end());
	for (int i = 0; i < 3; i++)
		printf("%c\n", v[i].second);
	return 0;
}
            
            
            
        