結果
| 問題 |
No.327 アルファベット列
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2016-01-11 09:55:27 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 233 bytes |
| コンパイル時間 | 477 ms |
| コンパイル使用メモリ | 56,028 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 18:44:29 |
| 合計ジャッジ時間 | 1,686 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 21 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
long n; cin>>n;
string res(1, 'A'+n%26);
n/=26;
while (n>0) {
res=string(1, n%26-1+'A')+res;
n/=26;
}
cout<<res<<endl;
}
hogeover30