結果
| 問題 | No.415 ぴょん |
| コンテスト | |
| ユーザー |
AREIDO2
|
| 提出日時 | 2016-08-29 14:41:54 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 77,488 KB |
| 最終ジャッジ日時 | 2025-12-03 21:21:28 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 TLE * 1 -- * 23 |
ソースコード
#!/usr/bin/env python
#coding:UTF-8
N,D = map(long,raw_input().split())
x = 0
sw = 0
count = 0
while sw == 0:
x = (x + D) % N
if x != 0:
count += 1
else:
sw = 1
print count
AREIDO2