結果

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main()
{
  long long n;
  char s[11];
  cin >> n;
  s[0]='A'+n%26;
  n/=26;
  int i=0;
  for(;n>0;n/=26)
  {
    ++i;
    s[i]='A'+n%26;
  }
  for(int j=i; j>=0; --j)cout << s[j] << flush;
  return 0;
}
0