結果
| 問題 | No.415 ぴょん |
| コンテスト | |
| ユーザー |
jj
|
| 提出日時 | 2016-08-26 22:30:08 |
| 言語 | Fortran (gFortran 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 316 bytes |
| 記録 | |
| コンパイル時間 | 1,690 ms |
| コンパイル使用メモリ | 39,676 KB |
| 実行使用メモリ | 1,303,712 KB |
| 最終ジャッジ日時 | 2026-05-08 15:29:03 |
| 合計ジャッジ時間 | 6,601 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 16 RE * 1 TLE * 1 MLE * 4 -- * 4 |
ソースコード
program main
implicit none
integer::N,D,i,curr,next
integer,allocatable::ashiba(:)
read *,N,D
allocate(ashiba(N))
ashiba = 1
curr = 1
do i=1,N
ashiba(curr) = 0
next = MOD(curr+D,N)+1
if(ashiba(next).eq.0) exit
curr = next
end do
i = MIN(N,i)
print '(i0)',i
end program main
jj