結果
問題 | No.739 大事なことなので2度言います |
ユーザー | Ryuji_tech |
提出日時 | 2019-05-12 17:41:01 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 245 bytes |
コンパイル時間 | 264 ms |
コンパイル使用メモリ | 11,544 KB |
実行使用メモリ | 15,420 KB |
最終ジャッジ日時 | 2023-09-18 05:16:02 |
合計ジャッジ時間 | 2,216 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 82 ms
15,256 KB |
testcase_01 | WA | - |
testcase_02 | AC | 81 ms
15,012 KB |
testcase_03 | WA | - |
testcase_04 | AC | 80 ms
15,296 KB |
testcase_05 | WA | - |
testcase_06 | AC | 82 ms
15,012 KB |
testcase_07 | AC | 79 ms
15,312 KB |
testcase_08 | AC | 79 ms
15,276 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
コンパイルメッセージ
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