結果

問題 No.746 7の倍数
ユーザー vividrabbit
提出日時 2018-11-05 18:58:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 494 ms
コンパイル使用メモリ 54,380 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-20 20:13:44
合計ジャッジ時間 52,421 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1 TLE * 1
other TLE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 << count << endl;
    return 0;
}
0