結果

問題 No.26 シャッフルゲーム
ユーザー con
提出日時 2019-06-14 19:24:20
言語 Fortran
(gFortran 14.2.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 1,033 ms
コンパイル使用メモリ 29,812 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-08 09:42:16
合計ジャッジ時間 1,701 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

implicit none
integer(8) a,b,c,d,i
read(*,*) a
read(*,*) b
do i=1,b
    read(*,*) c,d
    if (c==a) then
        a=d
    else if (d==a) then
        a=c
    end if
end do
write(*,*) a
end
0