結果
問題 |
No.1593 Perfect Distance
|
ユーザー |
![]() |
提出日時 | 2021-08-16 16:49:54 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 157 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 77,312 KB |
最終ジャッジ日時 | 2024-10-09 14:02:42 |
合計ジャッジ時間 | 3,063 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 1 WA * 16 |
ソースコード
n = int(input()) ans = 0 for i in range(1,n): print((n ** 2 - i ** 2) ** 0.5) if ((n ** 2 - i ** 2) ** 0.5).is_integer(): ans += 1 print(ans)