結果

問題 No.2479 Sum of Squares
ユーザー hiryuNhiryuN
提出日時 2023-09-22 21:51:03
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 109 bytes
コンパイル時間 1,583 ms
コンパイル使用メモリ 86,788 KB
実行使用メモリ 79,636 KB
最終ジャッジ日時 2023-09-22 21:51:09
合計ジャッジ時間 5,811 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,368 KB
testcase_01 AC 70 ms
71,340 KB
testcase_02 AC 70 ms
70,896 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 70 ms
71,340 KB
testcase_06 AC 70 ms
71,344 KB
testcase_07 AC 72 ms
70,952 KB
testcase_08 AC 71 ms
71,360 KB
testcase_09 AC 72 ms
71,396 KB
testcase_10 AC 71 ms
71,168 KB
testcase_11 AC 70 ms
71,276 KB
testcase_12 AC 70 ms
71,364 KB
testcase_13 AC 70 ms
71,020 KB
testcase_14 AC 70 ms
71,164 KB
testcase_15 AC 70 ms
71,344 KB
testcase_16 AC 71 ms
71,360 KB
testcase_17 AC 70 ms
71,360 KB
testcase_18 AC 71 ms
71,428 KB
testcase_19 AC 71 ms
70,904 KB
testcase_20 AC 70 ms
71,364 KB
testcase_21 AC 73 ms
71,368 KB
testcase_22 AC 70 ms
71,340 KB
testcase_23 AC 69 ms
71,220 KB
testcase_24 AC 70 ms
71,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
X=[]
while n!=0:
    a=int(n**(1/2)//1)
    X.append(a**2)
    n-=a**2
print(len(X))
print(*X)
0