結果

問題 No.2722 Kenken Fight
ユーザー hirakuuuuhirakuuuu
提出日時 2024-04-12 23:25:49
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 220 ms / 2,000 ms
コード長 948 bytes
コンパイル時間 3,821 ms
コンパイル使用メモリ 272,708 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-12 23:25:55
合計ジャッジ時間 5,573 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, n) for(int i = a; i < n; i++)
#define rrep(i, a, n) for(int i = a; i >= n; i--)
#define inr(l, x, r) (l <= x && x < r)
#define ll long long
#define ld long double
#define pii pair<int, int>
#define pll pair<ll, ll>
// constexpr ll MOD = 1000000007;
constexpr ll MOD = 998244353;
constexpr int IINF = 1001001001;
constexpr ll INF = 9e18;

template<class t,class u> void chmax(t&a,u b){if(a<b)a=b;}
template<class t,class u> void chmin(t&a,u b){if(b<a)a=b;}

ll power(ll a, ll b, ll m=MOD){
    ll res = 1;
    while(b > 0){
        if(b%2 == 1) res = res*a%m;
        a = a*a%m;
        b /= 2;
    }
    return res;
}

/*
iを選ぶと、iの約数が選べなくなる.
n/i
*/

int main(){
    int t; cin >> t;
    while(t--){
        ll n; cin >> n;
        if(n == 1){
            cout << "P" << endl;
        }else{
            cout << "K" << endl;
        }
    }
    return 0;
}
0