結果
| 問題 | 
                            No.746 7の倍数
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-11-05 19:01:05 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 300 bytes | 
| コンパイル時間 | 515 ms | 
| コンパイル使用メモリ | 55,136 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-20 20:14:37 | 
| 合計ジャッジ時間 | 52,534 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 TLE * 1 | 
| other | TLE * 20 | 
ソースコード
#include<iostream>
using namespace std;
int main(){
    int input;
    cin >> input;
    int max = 1;
    int count = 0;
    for(int i=0;i<input;i++){
        max *= 10;
    }
    for(int i=0;i<max;i++){
        if(i>6 && i%7==0)count++;
    }
    cout << (double)count/max << endl;
    return 0;
}