結果
| 問題 |
No.746 7の倍数
|
| コンテスト | |
| ユーザー |
misora192
|
| 提出日時 | 2020-05-15 08:07:27 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 6 ms / 2,000 ms |
| コード長 | 361 bytes |
| コンパイル時間 | 1,502 ms |
| コンパイル使用メモリ | 166,576 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-17 11:50:29 |
| 合計ジャッジ時間 | 2,755 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=(0);i<(n);i++)
using namespace std;
typedef long long ll;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
if(n == 0){
cout << 0 << endl;
return 0;
}
cout << "0.";
int t = 10;
rep(i, n){
int r = t / 7;
int q = t % 7;
cout << r;
t = q * 10;
}
cout << endl;
}
misora192