結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
![]() |
提出日時 | 2019-01-29 07:42:46 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 94 ms / 2,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 355 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,160 KB |
最終ジャッジ日時 | 2024-10-08 14:08:02 |
合計ジャッジ時間 | 2,127 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
コンパイルメッセージ
Syntax OK
ソースコード
chars = gets.chomp.charssort_chars = chars.sorti = 0j = 1fault = falsewhile j <= sort_chars.lengthunless sort_chars[i] == sort_chars[j]fault = truebreakendi += 2j += 2endhalf = chars.length / 2k,l = 0,halfwhile k < halfunless chars[k] == chars[l]fault = truebreakendk += 1l += 1endputs fault ? "NO" : "YES"