結果

問題 No.400 鏡
ユーザー IamAFunOfKonIamAFunOfKon
提出日時 2016-09-23 16:41:38
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 31 ms
コンパイル使用メモリ 5,120 KB
実行使用メモリ 41,088 KB
最終ジャッジ日時 2024-04-21 01:26:26
合計ジャッジ時間 1,612 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
40,960 KB
testcase_01 AC 74 ms
40,704 KB
testcase_02 AC 72 ms
40,704 KB
testcase_03 AC 71 ms
40,832 KB
testcase_04 AC 71 ms
40,832 KB
testcase_05 AC 72 ms
41,088 KB
testcase_06 AC 73 ms
40,704 KB
testcase_07 AC 71 ms
40,576 KB
testcase_08 AC 72 ms
40,832 KB
testcase_09 AC 72 ms
40,832 KB
testcase_10 AC 72 ms
40,448 KB
testcase_11 AC 78 ms
40,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', function (line) {
  lines.push(line);
  var s = lines[0];
  var rv = s.split("").reverse().join("");
  var rp = rv.replace(/</g,"-").replace(/>/g,"<").replace(/-/g,">");
  console.log(rp);
  process.exit(0);
});
process.stdin.on('end', function () {
});
0