結果

問題 No.1794 Continued Fraction
ユーザー tamato
提出日時 2021-12-29 10:27:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 82,564 KB
実行使用メモリ 53,408 KB
最終ジャッジ日時 2024-10-03 15:42:05
合計ジャッジ時間 2,989 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

A = []
N, M = map(int, input().split())
while True:
    if M == 0:
        break
    A.append(N // M)
    N %= M
    N, M = M, N
print(*A)
0