結果

問題 No.327 アルファベット列
ユーザー Deep_Instead
提出日時 2016-01-31 17:48:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 419 ms
コンパイル使用メモリ 55,424 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-21 19:41:34
合計ジャッジ時間 1,765 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other WA * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main()
{
  long long n;
  char str[10], ans[11];
  cin >> n;
  int i;
  for(i=0;(n>0 || 0==i);n/=26)
  {
    str[i]='A'+(n%26);
    ++i;
  }
  for(int j=0; j<i; ++j)ans[j]=str[i-j-1];
  str[i]='\0';
  cout << str << endl;
  return 0;
}
0