結果

問題 No.2479 Sum of Squares
ユーザー 👑 H20H20
提出日時 2023-09-23 18:08:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 110 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 71,876 KB
最終ジャッジ日時 2023-09-23 18:08:37
合計ジャッジ時間 4,086 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,688 KB
testcase_01 AC 68 ms
71,580 KB
testcase_02 AC 69 ms
71,876 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 68 ms
71,712 KB
testcase_06 AC 66 ms
71,572 KB
testcase_07 AC 68 ms
71,476 KB
testcase_08 AC 72 ms
71,560 KB
testcase_09 AC 72 ms
71,808 KB
testcase_10 AC 71 ms
71,420 KB
testcase_11 AC 70 ms
71,464 KB
testcase_12 AC 70 ms
71,572 KB
testcase_13 AC 71 ms
71,600 KB
testcase_14 AC 68 ms
71,796 KB
testcase_15 AC 67 ms
71,728 KB
testcase_16 AC 64 ms
71,512 KB
testcase_17 AC 64 ms
71,344 KB
testcase_18 AC 68 ms
71,712 KB
testcase_19 AC 67 ms
71,520 KB
testcase_20 AC 68 ms
71,596 KB
testcase_21 AC 68 ms
71,520 KB
testcase_22 AC 66 ms
71,572 KB
testcase_23 AC 66 ms
71,748 KB
testcase_24 AC 66 ms
71,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = int(input())
ANS = []
while S>0:
    ANS.append(int(S**0.5)**2)
    S-=ANS[-1]
print(len(ANS))
print(*ANS)
0