結果

問題 No.577 Prime Powerful Numbers
ユーザー %20%20
提出日時 2017-10-17 18:40:03
言語 Perl
(5.38.2)
結果
AC  
実行時間 903 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 5,404 KB
実行使用メモリ 4,840 KB
最終ジャッジ日時 2023-08-11 08:16:22
合計ジャッジ時間 5,362 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
4,708 KB
testcase_01 AC 44 ms
4,540 KB
testcase_02 AC 206 ms
4,720 KB
testcase_03 AC 451 ms
4,840 KB
testcase_04 AC 183 ms
4,572 KB
testcase_05 AC 855 ms
4,724 KB
testcase_06 AC 903 ms
4,840 KB
testcase_07 AC 855 ms
4,636 KB
testcase_08 AC 405 ms
4,836 KB
testcase_09 AC 251 ms
4,664 KB
testcase_10 AC 7 ms
4,492 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
for$N(<>){
	if($N%2){
		print`factor @{[grep$_>0,map$N-(1<<$_),1..60]}`=~/:( \d+)\1*\n/?Yes:No,$/
	}else{
		print$N>2?Yes:No,$/
	}
}
0