結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
![]() |
提出日時 | 2020-04-19 17:29:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 350 bytes |
コンパイル時間 | 2,341 ms |
コンパイル使用メモリ | 199,936 KB |
最終ジャッジ日時 | 2025-01-09 21:40:08 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {map<int, char> m;for (int i = 0; i < 3; i++) {int h;cin >> h;m[h] = 'A' + i;}vector<char> v;for (auto x : m) {v.push_back(x.second);}reverse(v.begin(), v.end());for (auto x : v) {cout << x << endl;}}