結果

問題 No.570 3人兄弟(その1)
ユーザー BQZetBQZet
提出日時 2017-11-24 18:55:05
言語 Fortran
(gFortran 13.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 602 bytes
コンパイル時間 429 ms
コンパイル使用メモリ 26,932 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-18 04:26:32
合計ジャッジ時間 993 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

program brother

integer,dimension(3)::H
read(*,*)H(:)

if(H(1)>H(2) .and. H(1)>H(3)) then
 print *,"A"
 if(H(2)>H(3)) then
  print *,"B"
  print *,"C"
 else if(H(2)<=H(3)) then
  print *,"C"
  print *,"B"
 end if
else if(H(2)>=H(1) .and. H(2)>=H(3)) then
 print *,"B"
 if(H(1)>H(3)) then
  print *,"A"
  print *,"C"
 else if(H(1)<=H(3)) then
  print *,"C"
  print *,"A"
 end if
else if(H(3)>H(2) .and. H(3)>=H(1)) then
 print *,"C"
 if(H(2)>H(1)) then
  print *,"B"
  print *,"A"
 else if(H(2)<=H(1)) then
  print *,"A"
  print *,"B"
 end if
end if
end program brother
0