結果
| 問題 | No.570 3人兄弟(その1) |
| コンテスト | |
| ユーザー |
ianlinathome
|
| 提出日時 | 2017-11-10 05:17:41 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 369 ms |
| コンパイル使用メモリ | 51,164 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-18 10:15:55 |
| 合計ジャッジ時間 | 1,353 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
#include <stdio.h>
#include <algorithm>
using namespace std;
int main(){
int a[3],c[3]={0,1,2};
char b[3]={'A','B','C'};
for(int i=0;i<3;i++)scanf("%d",&a[i]);
for(int i=0;i<6;i++){
if(a[c[0]]>a[c[1]]&&a[c[1]]>a[c[2]])printf("%c\n%c\n%c\n",b[c[0]],b[c[1]],b[c[2]]);
next_permutation(c,c+3);
}
}
ianlinathome