結果

問題 No.739 大事なことなので2度言います
ユーザー object1234object1234
提出日時 2019-01-29 00:27:13
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-04-16 10:08:16
合計ジャッジ時間 1,841 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 90 ms
12,288 KB
testcase_02 AC 87 ms
12,160 KB
testcase_03 AC 90 ms
12,032 KB
testcase_04 AC 89 ms
12,032 KB
testcase_05 AC 91 ms
12,160 KB
testcase_06 AC 91 ms
12,032 KB
testcase_07 AC 92 ms
12,288 KB
testcase_08 AC 93 ms
12,160 KB
testcase_09 AC 89 ms
12,032 KB
testcase_10 AC 90 ms
12,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

chars = gets.chomp.chars
chars.sort!
i = 0
j = 1
fault = false
while j <= chars.length
  unless chars[i] == chars[j]
    fault = true
    break
  end
  i += 2
  j += 2
end
puts fault ? "NO" : "YES"
0