結果

問題 No.739 大事なことなので2度言います
ユーザー Ryuji_tech
提出日時 2019-05-12 17:40:24
言語 Ruby
(3.4.1)
結果
RE  
実行時間 -
コード長 246 bytes
コンパイル時間 37 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-07-04 21:11:40
合計ジャッジ時間 1,836 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 4
other RE * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - inpuit
Syntax OK

ソースコード

diff #

inpuit = 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