結果
| 問題 |
No.327 アルファベット列
|
| コンテスト | |
| ユーザー |
zn_kie
|
| 提出日時 | 2019-07-15 09:14:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 474 bytes |
| コンパイル時間 | 658 ms |
| コンパイル使用メモリ | 66,944 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-26 06:49:46 |
| 合計ジャッジ時間 | 2,307 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 47 |
ソースコード
#include <iostream>
#include <vector>
#include <set>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
typedef long long ll;
#define rep(i,n) for (int i = 0; i < (n); ++i)
int main(){
ll N;
cin >> N;
ll N_ = N;
string ans="";
char tmp = 'A'+N_%26;
ans += tmp;
N_ /= 26;
while(N_){
N_--;
int s = N_ % 26;
tmp = 'A' + s;
ans += tmp;
N_ /= 26;
}
cout << ans << endl;
}
zn_kie