結果
問題 |
No.415 ぴょん
|
ユーザー |
![]() |
提出日時 | 2016-08-26 23:03:32 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 148 bytes |
コンパイル時間 | 391 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 275,196 KB |
最終ジャッジ日時 | 2024-11-08 09:43:43 |
合計ジャッジ時間 | 2,902 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 TLE * 1 -- * 23 |
ソースコード
N,D = map(int,raw_input().split()) cnt = 0 gone = set() s = 1 while s not in gone: gone.add(s) cnt += (N-1)/D s = s + D*((N-s)/D+1) - N print cnt