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