結果
問題 | No.571 3人兄弟(その2) |
ユーザー |
|
提出日時 | 2017-10-09 05:58:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 675 ms |
コンパイル使用メモリ | 71,156 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 06:13:07 |
合計ジャッジ時間 | 1,191 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main() | ^~~~
ソースコード
#include<iostream>#include<algorithm>#include<utility>using namespace std;pair<pair<int,int>,char>a[3];main(){for(int i=0;i<3;a[i].first.first*=-1,a[i].second=65+i,i++)cin>>a[i].first.first>>a[i].first.second;sort(a,a+3);for(int i=0;i<3;i++)cout<<a[i].second<<"\n";}