結果
| 問題 |
No.701 ひとりしりとり
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-08-22 10:54:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 527 bytes |
| コンパイル時間 | 528 ms |
| コンパイル使用メモリ | 66,388 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-23 13:19:30 |
| 合計ジャッジ時間 | 5,261 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 11 OLE * 1 |
ソースコード
#include<iostream>
#include<string>
using ll = long long;
using namespace std;
int main(){
char table[]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
ll n;
cin >> n;
for(ll i=2;;i++){
ll top=0;
do{
string str;
for(ll j=0;j<i;j++) str.insert(str.end(),table[(j+top)%26]);
cout << str <<endl;
if(!--n) return 0;;
top+=(i-1);
}while(top%26!=0);
}
return 0;
}
focus