結果

問題 No.730 アルファベットパネル
ユーザー 👑 はまやんはまやんはまやんはまやん
提出日時 2018-10-13 13:41:59
言語 Bash
(Bash 5.1.16)
結果
WA  
実行時間 -
コード長 141 bytes
コンパイル時間 34 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-20 20:02:21
合計ジャッジ時間 637 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,248 KB
testcase_01 AC 6 ms
5,376 KB
testcase_02 AC 6 ms
5,376 KB
testcase_03 AC 6 ms
5,376 KB
testcase_04 AC 6 ms
5,376 KB
testcase_05 AC 5 ms
5,376 KB
testcase_06 AC 5 ms
5,376 KB
testcase_07 AC 5 ms
5,376 KB
testcase_08 WA -
testcase_09 AC 5 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

read s
v1=($(echo $s | fold -s1))
v2=($(echo $s | fold -s1 | uniq))

if [ ${#v1[@]} = ${#v2[@]}  ]; then
    echo "YES"
else
    echo "NO"
fi
0