結果
| 問題 | No.800 四平方定理 |
| コンテスト | |
| ユーザー |
hazohel
|
| 提出日時 | 2019-03-17 22:33:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 461 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 31,312 KB |
| 最終ジャッジ日時 | 2026-03-29 16:15:18 |
| 合計ジャッジ時間 | 6,756 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 29 |
ソースコード
n = list(map(int, input().split()))
res = 0
for x in range(1, n[0]+ 1):
for y in range(1, n[0] + 1):
for z in range(1,n[0]+ 1):
for w in range(1, n[0]+ 1):
res += x**2 + y**2 + z**2 == w**2 + n[1]
print(res)
hazohel