結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
|
提出日時 | 2019-05-06 14:44:51 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 405 bytes |
コンパイル時間 | 724 ms |
コンパイル使用メモリ | 58,468 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 15:34:13 |
合計ジャッジ時間 | 1,333 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <algorithm>#include <iostream>using namespace std;int main(){struct brother{char name;int high;};brother great[3];cin>>great[0].high>>great[1].high>>great[2].high;great[0].name='A';great[1].name='B';great[2].name='C';sort(great,great+3,[](const brother& x, const brother& y){return x.high>y.high;});cout<<great[0].name<<"\n"<<great[1].name<<"\n"<<great[2].name<<"\n";return 0;}