結果
| 問題 | No.701 ひとりしりとり |
| コンテスト | |
| ユーザー |
chocorusk
|
| 提出日時 | 2018-06-24 04:46:30 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 2,000 ms |
| コード長 | 542 bytes |
| 記録 | |
| コンパイル時間 | 633 ms |
| コンパイル使用メモリ | 99,836 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-21 03:52:17 |
| 合計ジャッジ時間 | 1,331 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
using namespace std;
typedef long long int ll;
int main()
{
int n;
scanf("%d", &n);
if(n==1){
cout<<"doraemon"<<endl;
return 0;
}
for(int i=0; i<n-1; i++){
string str;
str+='a';
int i0=i;
while(i0>0){
str+=(char)('a'+(i0%26));
i0/=26;
}
str+='a';
cout<<str<<endl;
}
cout<<"an"<<endl;
return 0;
}
chocorusk