結果

問題 No.106 素数が嫌い!2
ユーザー neko_the_shadowneko_the_shadow
提出日時 2018-06-21 22:59:49
言語 Bash
(Bash 5.1.16)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 143 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-13 07:43:51
合計ジャッジ時間 37,414 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,515 ms
4,380 KB
testcase_01 AC 11 ms
4,376 KB
testcase_02 AC 11 ms
4,376 KB
testcase_03 AC 11 ms
4,376 KB
testcase_04 AC 2,469 ms
4,376 KB
testcase_05 TLE -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 AC 298 ms
4,376 KB
testcase_09 AC 311 ms
4,376 KB
testcase_10 TLE -
testcase_11 AC 2,143 ms
4,380 KB
testcase_12 TLE -
testcase_13 AC 11 ms
4,380 KB
testcase_14 AC 10 ms
4,380 KB
testcase_15 AC 12 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/bin/bash
read n k; seq 2 ${n} | factor | awk -v k="${k}" '{split("", a, ""); for(i=2;i<=NF;i++) a[$i]=1; if (k<=length(a)) print 1}' | wc -l
0