結果
| 問題 |
No.415 ぴょん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-26 19:16:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 275 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 1,629,696 KB |
| 最終ジャッジ日時 | 2024-11-26 19:17:00 |
| 合計ジャッジ時間 | 23,061 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 9 TLE * 9 MLE * 2 |
ソースコード
n, d = map(int, input().split())
s = [x for x in range(1, n+1)]
s[0] = 0
cnt = 0
for i in range(1, n+1):
if s[d%n] == 0:
break
else:
s[d%n] = 0
cnt += 1
d += d
print(cnt)