結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
KDKJ
|
| 提出日時 | 2023-11-29 15:31:00 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 409 bytes |
| 記録 | |
| コンパイル時間 | 123 ms |
| コンパイル使用メモリ | 85,136 KB |
| 実行使用メモリ | 54,912 KB |
| 最終ジャッジ日時 | 2026-04-13 15:39:54 |
| 合計ジャッジ時間 | 4,636 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 22 |
ソースコード
from heapq import heappush, heappop, heapify
import sys
from collections import defaultdict, deque
from math import ceil, floor, sqrt, factorial, gcd
from itertools import permutations, combinations
from bisect import bisect_left, bisect_right
sys.setrecursionlimit(10**6)
# input = sys.stdin.readline
s = int(input())
ans = []
while s > 0:
x = floor(s**0.5)
s -= x*x
ans.append(x*x)
print(*ans)
KDKJ