結果

問題 No.984 Inversion
ユーザー chielo
提出日時 2020-02-11 14:39:04
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 117 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 82,032 KB
実行使用メモリ 67,380 KB
最終ジャッジ日時 2024-10-01 07:42:39
合計ジャッジ時間 2,515 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 RE * 1
other RE * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

p, n = map(int, input().split())
if p == 2:
    print(int(n != 1))
else:
    print(int(pow(i, (p - 1) // 2, p) != 1))
0