結果

問題 No.2725 Coprime Game 2
ユーザー Carpenters-Cat
提出日時 2024-04-12 22:27:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 4,108 ms
コンパイル使用メモリ 251,832 KB
最終ジャッジ日時 2025-02-21 00:30:45
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 6 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
int main () {
	int T;
	cin >> T;
	while (T--) {
		ll N;
		cin >> N;
		int fl = 2;
		while (N % fl == 0) fl ++;
		cout << (gcd(N, fl) == 1 ? "K" : "P") << endl;
	}
}
0