結果

問題 No.207 世界のなんとか
ユーザー gogoteagogotea
提出日時 2015-05-16 02:18:56
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 115 ms / 5,000 ms
コード長 209 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-17 16:07:45
合計ジャッジ時間 1,895 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
5,248 KB
testcase_01 AC 21 ms
5,376 KB
testcase_02 AC 90 ms
5,376 KB
testcase_03 AC 69 ms
5,376 KB
testcase_04 AC 34 ms
5,376 KB
testcase_05 AC 47 ms
5,376 KB
testcase_06 AC 14 ms
5,376 KB
testcase_07 AC 15 ms
5,376 KB
testcase_08 AC 13 ms
5,376 KB
testcase_09 AC 115 ms
5,376 KB
testcase_10 AC 113 ms
5,376 KB
testcase_11 AC 108 ms
5,376 KB
testcase_12 AC 107 ms
5,376 KB
testcase_13 AC 113 ms
5,376 KB
testcase_14 AC 112 ms
5,376 KB
testcase_15 AC 108 ms
5,376 KB
testcase_16 AC 7 ms
5,376 KB
testcase_17 AC 1 ms
5,376 KB
testcase_18 AC 3 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

read start end

n=$start
while [ "$n" -le "$end" ]
do
  if [ $((n % 3)) -eq 0 ]; then
    echo "$n"
  else
    echo "$n" | grep -q '3'
    if [ $? -eq 0 ]; then
      echo "$n"
    fi
  fi
  n=$((n+1))  
done
0