結果

問題 No.2721 "Don't say N" Game
コンテスト
ユーザー あるふぁ
提出日時 2026-09-15 21:23:07
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 3 ms / 2,000 ms
+ 231µs
コード長 293 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,134 ms
コンパイル使用メモリ 186,208 KB
実行使用メモリ 6,528 KB
最終ジャッジ日時 2026-09-15 21:23:17
合計ジャッジ時間 2,908 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use proconio::input;

fn main(){
    input!{
        t: usize,
        ns: [i32; t],
    }

    for n in ns{
        let mut ans = false;
        for m in 1..n{
            if n%m == 0{
                ans = !ans;
            }
        }
        println!("{}", if ans{"K"} else{"P"});
    }
}
0