結果

問題 No.163 cAPSlOCK
コンテスト
ユーザー Takuya Ito
提出日時 2022-12-09 22:52:54
言語 TypeScript
(6.0.2)
コンパイル:
tsc.sh -p tsconfig.json
実行:
node main.js ONLINE_JUDGE
結果
WA  
実行時間 -
コード長 305 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,701 ms
コンパイル使用メモリ 346,544 KB
実行使用メモリ 53,248 KB
最終ジャッジ日時 2026-06-05 06:07:24
合計ジャッジ時間 8,103 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

function Main(input: string) {
  const reverseCaseStrings: string[] = input.split('')
                                            .map(str => str.match(/[a-z]/) ? str.toUpperCase() : str.toLowerCase());
  console.log(reverseCaseStrings.join(''));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0