結果
| 問題 | No.739 大事なことなので2度言います |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-06 00:46:44 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 215 bytes |
| コンパイル時間 | 102 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 41,840 KB |
| 最終ジャッジ日時 | 2024-10-13 00:54:05 |
| 合計ジャッジ時間 | 1,188 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 7 |
ソースコード
let input = require('fs').readFileSync('/dev/stdin', 'utf8');
const S = input.replace('\n', '');
console.log(input;
console.log(S.length % 2 ? 'NO' : S.slice(S.length / 2) == S.slice(-S.length / 2) ? 'YES' : 'NO');