結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
![]() |
提出日時 | 2017-11-24 18:55:05 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 602 bytes |
コンパイル時間 | 359 ms |
コンパイル使用メモリ | 31,360 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-27 07:06:43 |
合計ジャッジ時間 | 838 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
program brotherinteger,dimension(3)::Hread(*,*)H(:)if(H(1)>H(2) .and. H(1)>H(3)) thenprint *,"A"if(H(2)>H(3)) thenprint *,"B"print *,"C"else if(H(2)<=H(3)) thenprint *,"C"print *,"B"end ifelse if(H(2)>=H(1) .and. H(2)>=H(3)) thenprint *,"B"if(H(1)>H(3)) thenprint *,"A"print *,"C"else if(H(1)<=H(3)) thenprint *,"C"print *,"A"end ifelse if(H(3)>H(2) .and. H(3)>=H(1)) thenprint *,"C"if(H(2)>H(1)) thenprint *,"B"print *,"A"else if(H(2)<=H(1)) thenprint *,"A"print *,"B"end ifend ifend program brother