結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
nanophoto12
|
| 提出日時 | 2017-10-07 15:09:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 759 bytes |
| コンパイル時間 | 981 ms |
| コンパイル使用メモリ | 103,384 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 04:27:32 |
| 合計ジャッジ時間 | 1,442 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
#include <cmath>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <functional>
#include <queue>
#include <iostream>
#include <string.h>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <cstdint>
#include <climits>
#include <unordered_set>
#include <sstream>
#include <stack>
using namespace std;
typedef long long int ll;
typedef pair<ll,ll> pii;
typedef tuple<ll,ll,ll> t3;
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
vector<pair<int, string>> p;
p.emplace_back(a,"A");
p.emplace_back(b,"B");
p.emplace_back(c,"C");
sort(p.begin(), p.end(), std::greater<pair<int, string>>());
for(auto e: p)
{
cout << e.second << endl;
}
return 0;
}
nanophoto12