結果
| 問題 | No.746 7の倍数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-18 16:53:40 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 464 bytes |
| 記録 | |
| コンパイル時間 | 892 ms |
| コンパイル使用メモリ | 184,676 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-30 03:31:19 |
| 合計ジャッジ時間 | 2,043 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}