結果

問題 No.2479 Sum of Squares
ユーザー 👑 timitimi
提出日時 2023-09-23 10:12:23
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 132 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 79,692 KB
最終ジャッジ日時 2023-09-23 10:12:27
合計ジャッジ時間 4,175 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,920 KB
testcase_01 AC 68 ms
71,752 KB
testcase_02 AC 68 ms
71,972 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 68 ms
71,820 KB
testcase_06 AC 71 ms
71,796 KB
testcase_07 AC 75 ms
71,940 KB
testcase_08 AC 68 ms
71,856 KB
testcase_09 AC 80 ms
71,756 KB
testcase_10 AC 68 ms
71,868 KB
testcase_11 AC 67 ms
71,944 KB
testcase_12 AC 68 ms
71,748 KB
testcase_13 AC 69 ms
71,808 KB
testcase_14 AC 68 ms
71,748 KB
testcase_15 AC 68 ms
71,612 KB
testcase_16 AC 68 ms
71,696 KB
testcase_17 AC 68 ms
71,756 KB
testcase_18 AC 68 ms
71,932 KB
testcase_19 AC 68 ms
71,496 KB
testcase_20 AC 68 ms
71,928 KB
testcase_21 AC 66 ms
71,612 KB
testcase_22 AC 68 ms
71,748 KB
testcase_23 AC 69 ms
71,492 KB
testcase_24 AC 68 ms
71,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#N,Q=map(int, input().split())
N=int(input())
ans=[]
while N:
  s=int(N**0.5)**2
  ans.append(s)
  N-=s 
print(len(ans))
print(*ans)
0