結果
問題 | No.746 7の倍数 |
ユーザー |
|
提出日時 | 2020-10-15 18:21:31 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 2,345 ms |
コンパイル使用メモリ | 192,232 KB |
最終ジャッジ日時 | 2025-01-15 07:34:34 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; if(n==0)printf("0\n"); else{ printf("0."); string s="142857"; for(int i=0;i<n;i++){ printf("%c",s[i%6]); } printf("\n"); } }