結果
問題 | No.701 ひとりしりとり |
ユーザー |
|
提出日時 | 2019-08-20 19:38:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 127 ms / 2,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 1,858 ms |
コンパイル使用メモリ | 194,696 KB |
最終ジャッジ日時 | 2025-01-07 14:20:52 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;int main() {int n;cin>>n;for (int i=0;i<n-1;i++) {string s="a";int t=i;while (t) {s+=t%26+'a';t/=26;}s+="a";cout<<s<<endl;}cout<<"an"<<endl;return 0;}