結果

問題 No.577 Prime Powerful Numbers
ユーザー %20%20
提出日時 2017-10-17 18:40:03
言語 Perl
(5.38.2)
結果
AC  
実行時間 716 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 5,504 KB
最終ジャッジ日時 2024-04-29 00:50:56
合計ジャッジ時間 4,539 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,376 KB
testcase_01 AC 39 ms
5,504 KB
testcase_02 AC 115 ms
5,504 KB
testcase_03 AC 354 ms
5,376 KB
testcase_04 AC 105 ms
5,504 KB
testcase_05 AC 672 ms
5,504 KB
testcase_06 AC 716 ms
5,504 KB
testcase_07 AC 680 ms
5,504 KB
testcase_08 AC 321 ms
5,504 KB
testcase_09 AC 200 ms
5,376 KB
testcase_10 AC 6 ms
5,376 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