結果

問題 No.1794 Continued Fraction
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2024-03-10 18:31:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 61,560 KB
最終ジャッジ日時 2024-03-10 18:31:50
合計ジャッジ時間 4,548 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
61,432 KB
testcase_01 AC 46 ms
61,432 KB
testcase_02 AC 46 ms
61,432 KB
testcase_03 AC 46 ms
61,432 KB
testcase_04 AC 60 ms
61,432 KB
testcase_05 AC 52 ms
61,432 KB
testcase_06 AC 47 ms
61,432 KB
testcase_07 AC 47 ms
61,432 KB
testcase_08 AC 48 ms
61,432 KB
testcase_09 AC 47 ms
61,432 KB
testcase_10 AC 47 ms
61,432 KB
testcase_11 AC 50 ms
61,432 KB
testcase_12 AC 48 ms
61,432 KB
testcase_13 AC 50 ms
61,432 KB
testcase_14 AC 49 ms
61,432 KB
testcase_15 AC 50 ms
61,432 KB
testcase_16 AC 50 ms
61,432 KB
testcase_17 AC 50 ms
61,432 KB
testcase_18 AC 47 ms
61,432 KB
testcase_19 AC 47 ms
61,432 KB
testcase_20 AC 46 ms
61,432 KB
testcase_21 AC 47 ms
61,432 KB
testcase_22 AC 47 ms
61,432 KB
testcase_23 AC 47 ms
61,432 KB
testcase_24 AC 49 ms
61,432 KB
testcase_25 AC 47 ms
61,432 KB
testcase_26 AC 47 ms
61,432 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 51 ms
61,432 KB
testcase_30 AC 47 ms
61,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# import pypyjit
# pypyjit.set_param("max_unroll_recursion=-1")
from collections import *
from functools import *
from itertools import *
from heapq import *
import sys, math,random,time
# input = sys.stdin.readline



N,M = map(int,input().split())
A = []
while N!=M:
    p,q = divmod(N,M)
    A.append(p)
    N,M = M,q
    if M==0:
        break
print(*A)
0