結果

問題 No.2479 Sum of Squares
ユーザー e4q2pfnqe4q2pfnq
提出日時 2023-09-22 21:31:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 138 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,512 KB
実行使用メモリ 72,032 KB
最終ジャッジ日時 2023-09-22 21:31:10
合計ジャッジ時間 3,527 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,464 KB
testcase_01 AC 66 ms
71,636 KB
testcase_02 AC 67 ms
71,824 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 68 ms
71,620 KB
testcase_06 AC 67 ms
71,464 KB
testcase_07 AC 68 ms
71,780 KB
testcase_08 AC 67 ms
71,416 KB
testcase_09 AC 68 ms
71,472 KB
testcase_10 AC 68 ms
71,776 KB
testcase_11 AC 67 ms
71,628 KB
testcase_12 AC 67 ms
71,456 KB
testcase_13 AC 74 ms
72,032 KB
testcase_14 AC 68 ms
71,632 KB
testcase_15 AC 68 ms
71,620 KB
testcase_16 AC 68 ms
71,512 KB
testcase_17 AC 66 ms
71,676 KB
testcase_18 AC 68 ms
71,592 KB
testcase_19 AC 66 ms
71,832 KB
testcase_20 AC 67 ms
71,800 KB
testcase_21 AC 66 ms
71,940 KB
testcase_22 AC 68 ms
71,876 KB
testcase_23 AC 68 ms
71,472 KB
testcase_24 AC 67 ms
71,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = int(input())

e = 10**-10
ans = []
while S > 0:
    a = int(S**0.5 + e) ** 2
    ans.append(a)
    S -= a

print(len(ans))
print(*ans)
0