結果
| 問題 |
No.746 7の倍数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-05 18:51:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 312 bytes |
| コンパイル時間 | 415 ms |
| コンパイル使用メモリ | 55,356 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-20 20:12:51 |
| 合計ジャッジ時間 | 4,055 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 20 |
ソースコード
#include<iostream>
using namespace std;
int main(const int argc,const char* argv[]){
int input = atoi(argv[1]);
int max = 1;
int count = 0;
for(int i=0;i<input;i++){
max *= 10;
}
for(int i=0;i<max;i++){
if(i%7==0)count++;
}
cout << count << endl;
return 0;
}