結果
問題 |
No.327 アルファベット列
|
ユーザー |
![]() |
提出日時 | 2017-03-12 17:19:38 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 414 bytes |
コンパイル時間 | 1,215 ms |
コンパイル使用メモリ | 161,640 KB |
実行使用メモリ | 751,760 KB |
最終ジャッジ日時 | 2024-06-30 00:31:18 |
合計ジャッジ時間 | 8,042 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | WA * 14 MLE * 1 OLE * 1 -- * 34 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define INF 2000000000 #define MOD 1000000007 typedef long long ll; typedef pair<int, int> P; int main() { ll n; cin >> n; vector<ll> a; while (true) { ll tmp = n % 26; a.push_back(tmp); n -= 26; if (n<0) { break; } } string alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int i = 0; i < a.size(); i++) { cout << alpha[a[i]]; } cout << "\n"; }