結果
| 問題 |
No.327 アルファベット列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-24 22:17:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 326 bytes |
| コンパイル時間 | 507 ms |
| コンパイル使用メモリ | 60,984 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-18 23:00:11 |
| 合計ジャッジ時間 | 1,699 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | WA * 50 |
ソースコード
#include <string>
#include <iostream>
#include <cmath>
#include <fstream>
using namespace std;
typedef long long int ll;
int main()
{
ll n;
cin >> n;
if (n == 0) {
cout << 'A' << endl;
return 0;
}
while (n > 25) {
cout << (char) (n % 26 + 'A');
n = n / 26;
}
cout << (char)(n % 26 + 'A' -1);
return 0;
}