結果
問題 | No.327 アルファベット列 |
ユーザー |
![]() |
提出日時 | 2016-01-11 10:17:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 839 ms |
コンパイル使用メモリ | 57,144 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-06 22:46:17 |
合計ジャッジ時間 | 2,096 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
#include <iostream>#include <string>using namespace std;int main(){long n; cin>>n;string res;for(int i=0;n>-!i;++i) {if (i) --n;res=string(1, n%26+'A')+res;n/=26;}cout<<res<<endl;}