結果

問題 No.163 cAPSlOCK
ユーザー Takuya Ito
提出日時 2022-12-09 22:56:17
言語 TypeScript
(5.7.2)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 8,807 ms
コンパイル使用メモリ 228,932 KB
実行使用メモリ 41,464 KB
最終ジャッジ日時 2024-12-31 16:47:39
合計ジャッジ時間 10,403 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input: string): void {
  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