結果

問題 No.207 世界のなんとか
ユーザー MzoFreeMzoFree
提出日時 2021-05-10 06:28:51
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 158 ms / 5,000 ms
コード長 275 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-19 14:46:24
合計ジャッジ時間 2,605 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
4,348 KB
testcase_01 AC 23 ms
4,348 KB
testcase_02 AC 114 ms
4,348 KB
testcase_03 AC 86 ms
4,348 KB
testcase_04 AC 41 ms
4,348 KB
testcase_05 AC 62 ms
4,348 KB
testcase_06 AC 18 ms
4,348 KB
testcase_07 AC 20 ms
4,348 KB
testcase_08 AC 20 ms
4,348 KB
testcase_09 AC 153 ms
4,348 KB
testcase_10 AC 153 ms
4,348 KB
testcase_11 AC 146 ms
4,348 KB
testcase_12 AC 140 ms
4,348 KB
testcase_13 AC 158 ms
4,348 KB
testcase_14 AC 149 ms
4,348 KB
testcase_15 AC 154 ms
4,348 KB
testcase_16 AC 12 ms
4,348 KB
testcase_17 AC 2 ms
4,348 KB
testcase_18 AC 5 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/bin/bash

# 標準入力
read A B

# 指定した値の範囲で実行する。
for i in $(seq $A $B); do

# 3の付く数と3の倍数分の条件分枝
    if [ $(($i % 3)) == 0 ]; then
        echo $i
    elif [ `echo $i | grep '3'` ] ; then
        echo $i
    fi
done
0