結果
| 問題 | No.746 7の倍数 |
| コンテスト | |
| ユーザー |
peroon
|
| 提出日時 | 2019-04-23 15:08:26 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 920µs | |
| コード長 | 628 bytes |
| 記録 | |
| コンパイル時間 | 943 ms |
| コンパイル使用メモリ | 180,080 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-09-16 20:59:55 |
| 合計ジャッジ時間 | 2,858 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define ALL(v) (v).begin(), (v).end()
#define p(s) cout<<(s)<<endl
#define p2(s, t) cout << (s) << " " << (t) << endl
#define br() p("")
#define pn(s) cout << (#s) << " " << (s) << endl
#define p_yes() p("Yes")
#define p_no() p("No")
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
// input
ll N;
cin >> N;
if(N==0){
p(0);
return 0;
}
string s = "142857";
cout << "0.";
FOR(i, 0, N){
cout << s[i%6];
}
cout << endl;
return 0;
}
peroon