結果
問題 | No.163 cAPSlOCK |
ユーザー |
|
提出日時 | 2022-12-09 22:57:45 |
言語 | JavaScript (node v23.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 39,552 KB |
最終ジャッジ日時 | 2024-10-14 22:43:55 |
合計ジャッジ時間 | 2,414 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 20 |
ソースコード
function Main(input) { var reverseCaseStrings = input.split('').map(function (str) { return str.match(/[a-z]/) ? str.toUpperCase() : str.toLowerCase(); }); console.log(reverseCaseStrings.join('')); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));