結果

問題 No.739 大事なことなので2度言います
コンテスト
ユーザー Takuya-Ampi
提出日時 2020-03-07 20:57:04
言語 JavaScript
(node v26.7.0 + ACL)
コンパイル:
true
実行:
node _filename_ ONLINE_JUDGE
結果
AC  
実行時間 42 ms / 2,000 ms
+ 708µs
コード長 460 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3 ms
コンパイル使用メモリ 6,528 KB
実行使用メモリ 50,944 KB
最終ジャッジ日時 2026-09-15 06:59:43
合計ジャッジ時間 1,580 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

const reader = require("readline").createInterface({
  input: process.stdin,
  output: process.stdout
});
let lines = [];
reader.on("line", line => {
  lines.push(line);
});
reader.on("close", () => {
  const string = lines[0]
  const newStringFirst = string.slice(0,string.length/2)
  const newStringSecond = string.slice(string.length/2,string.length)
  if (newStringFirst === newStringSecond){
    console.log('YES')
  }else {
    console.log('NO')
  }
});
0