結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー |
![]() |
提出日時 | 2017-01-08 14:52:54 |
言語 | Bash (Bash 4.4.20) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 396 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 5,380 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-08-25 22:13:56 |
合計ジャッジ時間 | 1,406 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
外部呼び出し有り |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 7 ms
4,380 KB |
testcase_01 | AC | 14 ms
4,380 KB |
testcase_02 | AC | 7 ms
4,380 KB |
testcase_03 | AC | 11 ms
4,380 KB |
testcase_04 | AC | 7 ms
4,376 KB |
testcase_05 | AC | 8 ms
4,376 KB |
testcase_06 | AC | 13 ms
4,384 KB |
testcase_07 | AC | 12 ms
4,380 KB |
testcase_08 | AC | 10 ms
4,380 KB |
testcase_09 | AC | 10 ms
4,380 KB |
testcase_10 | AC | 8 ms
4,376 KB |
testcase_11 | AC | 7 ms
4,380 KB |
testcase_12 | AC | 11 ms
4,376 KB |
testcase_13 | AC | 11 ms
4,380 KB |
testcase_14 | AC | 12 ms
4,380 KB |
testcase_15 | AC | 10 ms
4,384 KB |
testcase_16 | AC | 11 ms
4,380 KB |
ソースコード
#!/bin/bash read a read b aa=`echo $a | awk '{match($1, /^[0-9]*$/); print substr($1, RSTART, RLENGTH);}'` bb=`echo $b | awk '{match($1, /^[0-9]*$/); print substr($1, RSTART, RLENGTH);}'` if [ -z "$aa" -o -z "$bb" ]; then echo "NG" else aa=`expr $aa + 0` bb=`expr $bb + 0` if [ "$aa" == "$a" -a "$bb" == "$b" -a $aa -le 12345 -a $bb -le 12345 ]; then echo "OK" else echo "NG" fi fi