結果

問題 No.2721 "Don't say N" Game
ユーザー pia-19pia-19
提出日時 2024-04-12 21:24:59
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 344 bytes
コンパイル時間 3,640 ms
コンパイル使用メモリ 274,780 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-12 21:25:04
合計ジャッジ時間 4,447 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#include<atcoder/modint>
using namespace std;
using namespace atcoder;

//const long long INF = 1LL<<60;

int main() {
    int t;
    cin >> t;
    for (int i=0; i < t; i++){
        int n;
        cin >> n;
        if (n == sqrt(n) * sqrt(n)) cout << "P" << endl;
        else cout << "K" << endl;
    }
    return 0;
}
0