結果
問題 |
No.327 アルファベット列
|
ユーザー |
![]() |
提出日時 | 2020-11-10 00:49:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 229 bytes |
コンパイル時間 | 1,293 ms |
コンパイル使用メモリ | 166,728 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 17:05:39 |
合計ジャッジ時間 | 2,800 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
#include <bits/stdc++.h> using namespace std; string f(long long N){ string S = ""; if (N >= 26){ S += f(N / 26 - 1); } S += 'A' + N % 26; return S; } int main(){ long long N; cin >> N; cout << f(N) << endl; }