結果
| 問題 | No.1593 Perfect Distance |
| コンテスト | |
| ユーザー |
tk
|
| 提出日時 | 2021-07-10 00:30:49 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 168 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 95,724 KB |
| 実行使用メモリ | 83,072 KB |
| 最終ジャッジ日時 | 2026-08-03 11:35:44 |
| 合計ジャッジ時間 | 2,784 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_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