結果

問題 No.327 アルファベット列
ユーザー Deep_Instead
提出日時 2016-01-31 18:40:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 423 ms
コンパイル使用メモリ 55,732 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-21 19:42:22
合計ジャッジ時間 1,524 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
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=0; j<i; ++j)cout << s[j] << flush;
  return 0;
}
0