結果
| 問題 | 
                            No.739 大事なことなので2度言います
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-05-12 17:41:01 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 245 bytes | 
| コンパイル時間 | 139 ms | 
| コンパイル使用メモリ | 7,552 KB | 
| 実行使用メモリ | 12,416 KB | 
| 最終ジャッジ日時 | 2024-07-04 21:48:29 | 
| 合計ジャッジ時間 | 1,834 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 2 | 
| other | AC * 4 WA * 3 | 
コンパイルメッセージ
Syntax OK
ソースコード
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