結果
| 問題 |
No.327 アルファベット列
|
| コンテスト | |
| ユーザー |
femto
|
| 提出日時 | 2016-08-19 19:12:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 370 bytes |
| コンパイル時間 | 838 ms |
| コンパイル使用メモリ | 77,712 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 18:34:17 |
| 合計ジャッジ時間 | 2,176 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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