結果
| 問題 | 
                            No.701 ひとりしりとり
                             | 
                    
| コンテスト | |
| ユーザー | 
                             focus
                         | 
                    
| 提出日時 | 2018-08-22 10:45:09 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 466 bytes | 
| コンパイル時間 | 746 ms | 
| コンパイル使用メモリ | 63,488 KB | 
| 実行使用メモリ | 8,448 KB | 
| 最終ジャッジ日時 | 2024-12-23 12:59:19 | 
| 合計ジャッジ時間 | 6,964 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 11 OLE * 1 | 
ソースコード
#include<iostream>
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{
            for(ll j=0;j<i;j++)    cout << table[(j+top)%26];
            cout << endl;
            if(!n--) return 0;;
            top+=(i-1);
        }while(top%26!=0);
    }
    return 0;
}
            
            
            
        
            
focus