結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
|
提出日時 | 2017-10-17 01:47:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 429 bytes |
コンパイル時間 | 593 ms |
コンパイル使用メモリ | 70,024 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-17 21:27:06 |
合計ジャッジ時間 | 1,085 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <iostream>#include <algorithm>int main() {using namespace std;int h[3];cin >> h[0] >> h[1] >> h[2];int hc[3] = {h[0], h[1], h[2]};sort(h, h+3, greater<int>());for (int i = 0; i < 3; i++) {if (h[i] == hc[0]) {cout << "A" << endl;} else if (h[i] == hc[1]) {cout << "B" << endl;} else {cout << "C" << endl;}}}