結果
| 問題 | No.739 大事なことなので2度言います |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-06 00:47:21 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 216 bytes |
| コンパイル時間 | 42 ms |
| コンパイル使用メモリ | 6,816 KB |
| 実行使用メモリ | 41,336 KB |
| 最終ジャッジ日時 | 2024-10-13 00:54:10 |
| 合計ジャッジ時間 | 1,199 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 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');