結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
|
提出日時 | 2019-05-12 17:54:29 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 88 ms / 2,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-07-04 23:39:50 |
合計ジャッジ時間 | 1,570 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
コンパイルメッセージ
Syntax OK
ソースコード
input = gets.chompif input.length % 2 == 0 thenfirst = input[0..(input.length/2-1)]second = input[(input.length/2)..input.length]if first == second thenputs "YES"elseputs "NO"endelseputs "NO"end