結果
問題 |
No.739 大事なことなので2度言います
|
ユーザー |
|
提出日時 | 2019-05-12 17:47:28 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 245 bytes |
コンパイル時間 | 54 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-07-04 23:26:08 |
合計ジャッジ時間 | 1,699 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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