結果
| 問題 |
No.327 アルファベット列
|
| コンテスト | |
| ユーザー |
femto
|
| 提出日時 | 2016-08-19 19:03:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 415 bytes |
| コンパイル時間 | 815 ms |
| コンパイル使用メモリ | 77,936 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 18:34:11 |
| 合計ジャッジ時間 | 2,269 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 21 |
ソースコード
#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;
string ans;
do {
ans = char('A' + (N % 26)) + ans;
N /= 26;
} while(N);
for(int i = 0; i < ans.size() - 1; i++) {
ans[i]--;
}
cout << ans << endl;
}
femto