結果
| 問題 |
No.671 1000000007
|
| コンテスト | |
| ユーザー |
gon_027
|
| 提出日時 | 2018-09-09 16:31:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 544 bytes |
| コンパイル時間 | 392 ms |
| コンパイル使用メモリ | 53,976 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 14:50:12 |
| 合計ジャッジ時間 | 1,111 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
#define p(x) cout << x << endl;
#define el cout << endl;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
long a = 1000000000;
long n;
cin >> n;
n -= 7;
int b;
int count = 0;
if(n > a){
b = n / a;
// cout << b << endl;
}else{
b = a / n;
// cout << b << endl;
}
while(true){
b = b / 10;
count++;
if(b < 10){
break;
}
}
cout << count << endl;
}
gon_027