結果
| 問題 |
No.327 アルファベット列
|
| コンテスト | |
| ユーザー |
wreulicke
|
| 提出日時 | 2015-12-20 04:18:20 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 602 bytes |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 41,588 KB |
| 最終ジャッジ日時 | 2024-10-12 23:35:26 |
| 合計ジャッジ時間 | 4,754 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 50 |
ソースコード
function convert(data) {
return (data)
.toString(26)
.toUpperCase()
.split("")
.map(function (s, i) {
var code = s.charCodeAt(0)
return (code <= 57)
? code + 7 + 10
: code + 10
})
.map(function (code, i, array) {
var offset = (array.length - 1 == i)
? 0
: -1
return String.fromCharCode(code + offset)
})
}
function Main(input) {
var input = input.toString().split('\n')[0];
var N=parseInt(inuput)
console.log(convert(N))
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
wreulicke