結果

問題 No.739 大事なことなので2度言います
ユーザー Ryuji_techRyuji_tech
提出日時 2019-05-12 17:47:28
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 11,192 KB
実行使用メモリ 15,328 KB
最終ジャッジ日時 2023-09-18 07:14:51
合計ジャッジ時間 2,466 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,128 KB
testcase_01 WA -
testcase_02 AC 81 ms
15,040 KB
testcase_03 WA -
testcase_04 AC 81 ms
15,016 KB
testcase_05 WA -
testcase_06 AC 80 ms
15,232 KB
testcase_07 AC 81 ms
15,064 KB
testcase_08 AC 81 ms
15,324 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input = gets.chomp

if input.length % 2 > 0 then
    first = input[0..(input.length/2-1)]
    second = input[(input.length/2)..input.length]
    if first == second then
        puts "YES"
    else
        puts "NO"
    end
else
    puts "NO"
end
0