結果

問題 No.2479 Sum of Squares
ユーザー hiro1729hiro1729
提出日時 2023-09-22 21:21:17
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 112 bytes
コンパイル時間 2,013 ms
コンパイル使用メモリ 86,736 KB
実行使用メモリ 79,632 KB
最終ジャッジ日時 2023-09-22 21:21:23
合計ジャッジ時間 4,203 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,720 KB
testcase_01 AC 68 ms
71,460 KB
testcase_02 AC 68 ms
71,696 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 69 ms
71,612 KB
testcase_06 AC 67 ms
71,776 KB
testcase_07 AC 70 ms
71,788 KB
testcase_08 AC 67 ms
71,620 KB
testcase_09 AC 68 ms
71,872 KB
testcase_10 AC 69 ms
71,596 KB
testcase_11 AC 68 ms
71,728 KB
testcase_12 AC 86 ms
71,616 KB
testcase_13 AC 68 ms
71,632 KB
testcase_14 AC 68 ms
71,484 KB
testcase_15 AC 67 ms
71,700 KB
testcase_16 AC 68 ms
71,724 KB
testcase_17 AC 68 ms
71,828 KB
testcase_18 AC 68 ms
71,636 KB
testcase_19 AC 68 ms
71,804 KB
testcase_20 AC 67 ms
71,772 KB
testcase_21 AC 67 ms
71,692 KB
testcase_22 AC 69 ms
71,624 KB
testcase_23 AC 69 ms
71,892 KB
testcase_24 AC 86 ms
71,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = int(input())
ans = []
while s:
	t = int(s ** 0.5)
	s -= t * t
	ans.append(t * t)
print(len(ans))
print(*ans)
0