結果
問題 |
No.415 ぴょん
|
ユーザー |
![]() |
提出日時 | 2016-08-26 22:32:17 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 792 ms |
コンパイル使用メモリ | 31,616 KB |
実行使用メモリ | 788,736 KB |
最終ジャッジ日時 | 2024-11-08 09:30:45 |
合計ジャッジ時間 | 2,887 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 3 MLE * 1 -- * 23 |
ソースコード
program main implicit none integer::N,D,i,curr,next integer,allocatable::ashiba(:) read *,N,D allocate(ashiba(0:N-1)) ashiba = 1 curr = 0 do i=1,N ashiba(curr) = 0 next = MOD(curr+D,N) if(ashiba(next).eq.0) exit curr = next end do i = MIN(N,i) print '(i0)',i end program main