結果

問題 No.1593 Perfect Distance
ユーザー harapecoharapeco
提出日時 2022-04-07 10:18:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 101 bytes
コンパイル時間 379 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 72,232 KB
最終ジャッジ日時 2023-08-18 16:38:00
合計ジャッジ時間 2,956 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 66 ms
71,388 KB
testcase_02 AC 65 ms
71,648 KB
testcase_03 AC 69 ms
71,504 KB
testcase_04 AC 65 ms
71,744 KB
testcase_05 AC 65 ms
71,448 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 64 ms
71,884 KB
testcase_18 AC 64 ms
71,932 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = (N**2 - (N-1)**2)**0.5
if (ans-int(ans)) == 0:
    print(2)
else:
    print(0)
0