結果
| 問題 |
No.327 アルファベット列
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2019-06-21 15:43:41 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 347 bytes |
| コンパイル時間 | 548 ms |
| コンパイル使用メモリ | 59,252 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-25 10:55:09 |
| 合計ジャッジ時間 | 1,868 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 1 WA * 49 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main(){
long long n;cin>>n;
if(n==0){
cout << "A" << endl;
return 0;
}
string s;
while(n != 0){
s.push_back('A'+n%26);
n/=26;
}
reverse(s.begin(),s.end());
if(s.size()!=0)s[0]--;
cout << s << endl;
}