結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
femto
|
| 提出日時 | 2016-08-19 19:12:01 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 250µs | |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 362 ms |
| コンパイル使用メモリ | 94,076 KB |
| 実行使用メモリ | 9,940 KB |
| 最終ジャッジ日時 | 2026-09-20 19:16:13 |
| 合計ジャッジ時間 | 2,589 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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