結果

問題 No.746 7の倍数
ユーザー wacchoz
提出日時 2019-02-22 23:00:20
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 429 bytes
コンパイル時間 1,242 ms
コンパイル使用メモリ 158,852 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-25 20:59:39
合計ジャッジ時間 2,335 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"

using namespace std;

typedef pair<int, int> P;
#define int long long
#define ll long long
#define mod 1000000007
#define INF (1LL<<60)

#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)




signed main(){

	int N;
	cin >> N;
	int a[7] = { 1, 4, 2, 8, 5, 7 };

	if (N == 0){
		cout << "0" << endl;
		return 0;
	}
	cout << "0.";
	for (int i = 0; i < N; i++){
		cout << a[i % 6];
	}

	return 0;
}
0