結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-09 22:52:54 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 305 bytes |
| コンパイル時間 | 8,039 ms |
| コンパイル使用メモリ | 229,856 KB |
| 実行使用メモリ | 41,716 KB |
| 最終ジャッジ日時 | 2024-12-31 16:47:32 |
| 合計ジャッジ時間 | 10,464 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 20 |
ソースコード
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"));