結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
|
提出日時 | 2019-07-28 01:58:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 1,812 ms |
コンパイル使用メモリ | 196,800 KB |
最終ジャッジ日時 | 2025-01-07 09:45:09 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;int main() {pair<int, char> p[3];string s = "ABC";for (int i = 0; i < 3; i++) {int a;cin >> a;p[i] = { a, s[i] };}sort(p, p+3);reverse(p, p+3);for (auto x : p) cout << x.second << endl;return 0;}