結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
kyuna
|
| 提出日時 | 2020-01-07 18:04:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 311 bytes |
| コンパイル時間 | 585 ms |
| コンパイル使用メモリ | 68,836 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-23 01:02:10 |
| 合計ジャッジ時間 | 2,123 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 47 |
ソースコード
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
long long n; cin >> n;
auto to_str = [](long long n) {
string res;
while (n--) res += char('A' + n % 26), n /= 26;
return res;
};
cout << to_str(n + 1) << endl;
return 0;
}
kyuna