Submission #31915


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
read x
read y
x_len=`echo ${#x}`
y_len=`echo ${#y}`
# < - less than
if [ ${x_len} -lt ${y_len} ]; then
echo "TDN is stronger than HTN."
# > - greater than
elif [ ${x_len} -gt ${y_len} ]; then
echo "HTN is stronger than TDN."
else
echo "Draw..."
fi
exit 0

ステータス

項目 データ
問題 0882 - HランDB
ユーザー名 ei1711
投稿日時 2018-03-07 17:45:31
言語 Bash
状態 Accepted
得点 1
ソースコード長 302 Byte
最大実行時間 65 ms
最大メモリ使用量 760 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01.txt AC 65 ms 620 KB
1
input02.txt AC 19 ms 628 KB
1
input03.txt AC 21 ms 636 KB
1
input04.txt AC 18 ms 760 KB
1
input05.txt AC 22 ms 656 KB
1
input06.txt AC 41 ms 668 KB
1
input07.txt AC 29 ms 696 KB
1
input08.txt AC 14 ms 688 KB
1