結果
問題 |
No.1794 Continued Fraction
|
ユーザー |
|
提出日時 | 2024-03-10 18:31:44 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 357 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 61,968 KB |
最終ジャッジ日時 | 2024-09-29 21:44:39 |
合計ジャッジ時間 | 4,058 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 2 |
ソースコード
# 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)