結果
| 問題 | 
                            No.746 7の倍数
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-09-18 16:53:40 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 464 bytes | 
| コンパイル時間 | 1,679 ms | 
| コンパイル使用メモリ | 167,628 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-08 10:08:54 | 
| 合計ジャッジ時間 | 2,432 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 20 | 
ソースコード
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );
using namespace std;
using ll = long long;
int a[] = {1, 4, 2, 8, 5, 7};
int main(){
    int n;
    cin >> n;
    string ans = "0";
    if(n != 0) ans += ".";
    rep(i, n){
        ans += to_string(a[i%6]);
    }
    cout << ans << endl;
}