結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
wreulicke
|
| 提出日時 | 2015-12-20 05:58:59 |
| 言語 | JavaScript (node v26.7.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 359 bytes |
| 記録 | |
| コンパイル時間 | 37 ms |
| コンパイル使用メモリ | 9,972 KB |
| 実行使用メモリ | 51,524 KB |
| 最終ジャッジ日時 | 2026-09-15 05:11:21 |
| 合計ジャッジ時間 | 4,366 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 50 |
ソースコード
function test(n) {
var result = []
do {
result.push((n % 26) + 65);
n = (n / 26) - 1;
} while (n >= 0);
return String
.fromCharCode
.apply(String, result.reverse())
}
function Main(input) {
var input = input.split('\n')[0];
var N = parseInt(input)
console.log(N, test(N))
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
wreulicke