結果
| 問題 | No.3493 等比数列の和の素因数 |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2026-04-04 01:01:59 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 156 bytes |
| 記録 | |
| コンパイル時間 | 772 ms |
| コンパイル使用メモリ | 21,536 KB |
| 実行使用メモリ | 16,000 KB |
| 最終ジャッジ日時 | 2026-08-25 14:09:46 |
| 合計ジャッジ時間 | 6,469 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 WA * 7 |
ソースコード
import sys
input = sys.stdin.readline
from math import gcd
N,P=list(map(int,input().split()))
if gcd(N+1,P-1)!=1:
print("Yes")
else:
print("No")
titia