結果
問題 | No.26 シャッフルゲーム |
ユーザー | jj |
提出日時 | 2016-07-30 13:43:48 |
言語 | Fortran (gFortran 13.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 282 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 32,128 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-04-24 13:07:44 |
合計ジャッジ時間 | 872 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
integer::N,M,i,pos integer,allocatable::PQ(:,:) read *, N, M allocate(PQ(2,M)) read *, PQ pos = 1 do i=1, M if (pos.eq.PQ(1,i)) then pos = PQ(2,i) else if(pos.eq.PQ(2,i)) then pos = PQ(1,i) end if end do print '(i0)',pos end program