結果
問題 |
No.327 アルファベット列
|
ユーザー |
|
提出日時 | 2020-06-23 21:49:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 1,540 ms |
コンパイル使用メモリ | 168,172 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-03 19:30:35 |
合計ジャッジ時間 | 3,091 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 50 |
ソースコード
#include <bits/stdc++.h> #include <iostream> #include <math.h> using namespace std; int main() { int N; cin >> N; string ans = ""; while (N > 0) { N--; ans += (char)('a' + N % 26); N /= 26; } reverse(ans.begin(), ans.end()); cout << ans << endl; return 0; }