結果
| 問題 |
No.327 アルファベット列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-28 10:38:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 412 bytes |
| コンパイル時間 | 738 ms |
| コンパイル使用メモリ | 72,188 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-28 10:38:27 |
| 合計ジャッジ時間 | 2,546 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 50 |
ソースコード
#include <iostream>
#include <vector>
using ll = long long int;
int main(){
std::ios::sync_with_stdio(false);
std::cin.tie(0);
ll n;
std::vector<char> str;
std::cin >> n;
do{
str.push_back(n%26+'A');
n/=26;
--n;
}while(n!=-1);
for(auto rit=str.rbegin(); rit!=str.rend(); ++rit){
std::cout << *rit;
}
std::cout << "\n";
return 0;
}