結果
| 問題 | No.1593 Perfect Distance |
| コンテスト | |
| ユーザー |
tk
|
| 提出日時 | 2021-07-10 00:30:49 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 168 bytes |
| 記録 | |
| コンパイル時間 | 131 ms |
| コンパイル使用メモリ | 85,756 KB |
| 実行使用メモリ | 60,164 KB |
| 最終ジャッジ日時 | 2026-03-22 21:11:49 |
| 合計ジャッジ時間 | 1,353 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 1 WA * 16 |
ソースコード
N = int(input())
cnt = 0
import math
for i in range(1,N):
p = (N+i)*(N-i)
t = math.ceil(p)
m = math.floor(p)
if p == t == m:
cnt += 1
print(cnt)
tk