結果
| 問題 | No.2725 Coprime Game 2 |
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2024-04-13 00:11:02 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 203 ms / 2,000 ms |
| + 661µs | |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 73 ms |
| コンパイル使用メモリ | 80,512 KB |
| 実行使用メモリ | 84,224 KB |
| 最終ジャッジ日時 | 2026-09-09 07:26:04 |
| 合計ジャッジ時間 | 3,365 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 |
ソースコード
import math
T=int(input())
for _ in range(T):
N=int(input())
for i in range(1,N+1):
if N%i==0:
continue
else:
break
if math.gcd(N,i)==1:
print('K')
else:
print('P')
nikoro256