結果
問題 | No.701 ひとりしりとり |
ユーザー |
![]() |
提出日時 | 2018-06-15 22:41:55 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 118 ms / 2,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 3,255 ms |
コンパイル使用メモリ | 66,828 KB |
最終ジャッジ日時 | 2025-01-05 13:52:20 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include<iostream> using namespace std; int main(void) { int n;cin>>n; for(int i=0;i<n-1;++i){ string s(6,'a'); int a=i; for(int j=0;j<4;++j){ s[j+1]='a'+(a%26); a/=26; } cout<<s<<endl; } cout<<"an"<<endl; }