結果
| 問題 | No.570 3人兄弟(その1) |
| コンテスト | |
| ユーザー |
ianlinathome
|
| 提出日時 | 2017-11-10 05:16:03 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 329 bytes |
| 記録 | |
| コンパイル時間 | 260 ms |
| コンパイル使用メモリ | 51,672 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-18 10:16:02 |
| 合計ジャッジ時間 | 942 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 2 |
ソースコード
#include <stdio.h>
#include <algorithm>
using namespace std;
int main(){
int a[3];
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[0]>a[1]&&a[1]>a[2])printf("%c\n%c\n%c\n",b[0],b[1],b[2]);
next_permutation(a,a+3);
next_permutation(b,b+3);
}
}
ianlinathome