結果
問題 |
No.2725 Coprime Game 2
|
ユーザー |
![]() |
提出日時 | 2024-04-13 00:11:02 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 321 ms / 2,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 384 ms |
コンパイル使用メモリ | 82,500 KB |
実行使用メモリ | 76,800 KB |
最終ジャッジ日時 | 2024-10-02 23:52:22 |
合計ジャッジ時間 | 3,074 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 8 |
ソースコード
import math T=int(input()) for _ in range(T): N=int(input()) for i in range(1,N+1): if N%i==0: continue else: break if math.gcd(N,i)==1: print('K') else: print('P')