結果

問題 No.570 3人兄弟(その1)
ユーザー bennkei0327bennkei0327
提出日時 2017-10-19 00:56:37
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 759 bytes
コンパイル時間 1,829 ms
コンパイル使用メモリ 28,060 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-11 21:09:25
合計ジャッジ時間 2,568 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void)
{
  int i,x;
  int H[3];
  int N1,N2,N3;
  for(i = 0; i < 3; i++){
    scanf("%d",&x);
    H[i] = x;
  }
  
  if(H[0] > H[1]){
    if(H[0] > H[2]){
      N1 = H[0];
      if(H[1] > H[2]){
	N2 = H[1];
	N3 = H[2];
      }
      if(H[1] < H[2]){
	N2 = H[2];
	N3 = H[1];
      }
    }
  }
  
  
 if(H[1] > H[0]){
    if(H[1] > H[2]){
      N1 = H[1];
      if(H[2] > H[0]){
	N2 = H[2];
	N3 = H[0];
      }
      if(H[2] < H[0]){
	N2 = H[0];
	N3 = H[2];
      }
    }
  }


 if(H[2] > H[0]){
    if(H[2] > H[1]){
      N1 = H[2];
      if(H[1] > H[0]){
	N2 = H[1];
	N3 = H[0];
      }
      if(H[1] < H[0]){
	N2 = H[0];
	N3 = H[1];
      }
    }
  }



 printf("%d\n",N1);
 printf("%d\n",N2);
 printf("%d\n",N3);



  return 0;
}
0