結果
| 問題 |
No.2721 "Don't say N" Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-12 23:26:31 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 354 bytes |
| コンパイル時間 | 2,550 ms |
| コンパイル使用メモリ | 244,712 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-10-02 23:50:39 |
| 合計ジャッジ時間 | 3,107 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 5 |
ソースコード
#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++){
long long n;
cin >> n;
if (n == (sqrtl(n) * sqrtl(n))) cout << "P" << endl;
else cout << "K" << endl;
}
return 0;
}