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