結果
問題 | No.1593 Perfect Distance |
ユーザー |
![]() |
提出日時 | 2021-07-10 00:30:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 168 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 81,752 KB |
実行使用メモリ | 57,984 KB |
最終ジャッジ日時 | 2024-07-01 19:17:10 |
合計ジャッジ時間 | 1,780 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)