結果
| 問題 | No.3036 Nauclhlt型文字列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-28 21:26:42 |
| 言語 | JavaScript (node v25.8.2) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| コード長 | 417 bytes |
| 記録 | |
| コンパイル時間 | 3 ms |
| コンパイル使用メモリ | 7,216 KB |
| 実行使用メモリ | 63,344 KB |
| 最終ジャッジ日時 | 2026-07-06 11:37:44 |
| 合計ジャッジ時間 | 1,909 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
function Main(input) {
input = input.split("\n").map((line) => line.trim());
const N = Number(input[0]);
const S = input[1].split("");
if (N % 2 !== 0) {
console.log("No");
return;
}
const P = S.map((s, i) => (i % 2 === 0 ? s : "")).join("");
const Q = S.map((s, i) => (i % 2 !== 0 ? s : "")).join("");
console.log("Yes");
console.log(P, Q);
}
Main(require("fs").readFileSync(0, "utf8"));