結果

問題 No.1794 Continued Fraction
ユーザー 👑 KazunKazun
提出日時 2021-12-22 22:09:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 86,624 KB
実行使用メモリ 71,220 KB
最終ジャッジ日時 2023-10-15 01:45:03
合計ジャッジ時間 4,018 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,124 KB
testcase_01 AC 71 ms
71,220 KB
testcase_02 AC 70 ms
71,060 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 71 ms
71,192 KB
testcase_07 AC 69 ms
71,140 KB
testcase_08 AC 72 ms
71,140 KB
testcase_09 AC 72 ms
70,960 KB
testcase_10 AC 69 ms
71,144 KB
testcase_11 AC 69 ms
70,880 KB
testcase_12 AC 70 ms
71,136 KB
testcase_13 AC 70 ms
71,132 KB
testcase_14 AC 69 ms
71,144 KB
testcase_15 AC 70 ms
71,216 KB
testcase_16 AC 70 ms
71,152 KB
testcase_17 AC 71 ms
70,988 KB
testcase_18 AC 70 ms
71,124 KB
testcase_19 AC 69 ms
71,176 KB
testcase_20 AC 69 ms
70,968 KB
testcase_21 AC 70 ms
71,088 KB
testcase_22 AC 70 ms
70,996 KB
testcase_23 AC 68 ms
70,952 KB
testcase_24 AC 69 ms
70,912 KB
testcase_25 AC 68 ms
71,120 KB
testcase_26 AC 69 ms
70,992 KB
testcase_27 AC 69 ms
71,148 KB
testcase_28 AC 70 ms
70,996 KB
testcase_29 AC 70 ms
71,128 KB
testcase_30 AC 70 ms
71,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#WA (項の数が60を超える)

N,M=map(int,input().split())
A=[]
while M:
    q,r=divmod(N,M)
    A.append(q)
    N,M=M,r

B=A[:-1]+[0]*20+[A[-1]]
print(*B)
0