結果
問題 |
No.570 3人兄弟(その1)
|
ユーザー |
![]() |
提出日時 | 2017-10-18 09:42:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 630 ms |
コンパイル使用メモリ | 57,472 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 14:26:55 |
合計ジャッジ時間 | 961 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <utility> using namespace std; int main(void){ int h[3]; char x[3]={'A','B','C'}; cin >> h[0] >> h[1] >> h[2]; for(int i=0;i<2;i++){ for(int j=i;j<3;j++){ if(h[i]<h[j]){ swap(h[i],h[j]); swap(x[i],x[j]); } } } cout << x[0] << "\n" << x[1] << "\n" << x[2] << "\n"; return 0; }