結果

問題 No.2479 Sum of Squares
ユーザー n_nan_na
提出日時 2023-09-22 23:59:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 135 bytes
コンパイル時間 517 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 71,892 KB
最終ジャッジ日時 2023-09-22 23:59:16
合計ジャッジ時間 4,343 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,612 KB
testcase_01 AC 80 ms
71,764 KB
testcase_02 AC 73 ms
71,592 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 71 ms
71,500 KB
testcase_06 AC 70 ms
71,868 KB
testcase_07 AC 71 ms
71,764 KB
testcase_08 AC 72 ms
71,620 KB
testcase_09 AC 71 ms
71,812 KB
testcase_10 AC 75 ms
71,500 KB
testcase_11 AC 73 ms
71,636 KB
testcase_12 AC 73 ms
71,892 KB
testcase_13 AC 74 ms
71,768 KB
testcase_14 AC 73 ms
71,776 KB
testcase_15 AC 73 ms
71,660 KB
testcase_16 AC 71 ms
71,504 KB
testcase_17 AC 71 ms
71,776 KB
testcase_18 AC 73 ms
71,576 KB
testcase_19 AC 72 ms
71,496 KB
testcase_20 AC 71 ms
71,700 KB
testcase_21 AC 71 ms
71,760 KB
testcase_22 AC 75 ms
71,500 KB
testcase_23 AC 72 ms
71,700 KB
testcase_24 AC 73 ms
71,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = int(input())

A = []
while S > 0:
    k = int(pow(S,0.5)//1)
    A.append(pow(k,2))
    S -= pow(k,2)
    
print(len(A))
print(*A)
0