結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
femto
|
| 提出日時 | 2016-08-19 19:12:01 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 653 ms |
| コンパイル使用メモリ | 93,132 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-08 02:08:53 |
| 合計ジャッジ時間 | 2,480 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 50 |
ソースコード
#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <string>
#include <algorithm>
#include <iomanip>
using namespace std;
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll N;
cin >> N;
N++;
string ans;
do {
N--;
ans = char('A' + (N % 26)) + ans;
N /= 26;
} while(N);
cout << ans << endl;
}
femto