結果

問題 No.88 次はどっちだ
ユーザー s0j1sans0j1san
提出日時 2018-01-07 21:53:10
言語 Fortran
(gFortran 13.2.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 395 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 26,288 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-24 23:41:14
合計ジャッジ時間 1,038 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

program main
    implicit none
    integer:: bw=0,han=1,i,j
    character pl*6,ban*8
    read(*,*)pl
    if(pl(1:1)=="o")han=han*(-1)
    do i=1,8
        read(*,*)ban
        do j=1,8
            if(ban(j:j)/=".")bw=bw+1
        enddo
    enddo
    if(mod(bw,2)==0)han=han*(-1)
    if(han/=1)then
        write(*,"(a6)")"yukiko"
    else
        write(*,"(a3)")"oda"
    endif
end program main
0