結果
| 問題 | No.671 1000000007 |
| コンテスト | |
| ユーザー |
kyawashell
|
| 提出日時 | 2018-04-13 22:24:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 718 bytes |
| 記録 | |
| コンパイル時間 | 1,121 ms |
| コンパイル使用メモリ | 99,776 KB |
| 最終ジャッジ日時 | 2025-01-05 10:02:37 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<climits>
#include<iostream>
#include<algorithm>
#include<stack>
#include<queue>
#include<vector>
#include<list>
#include<map>
#include<set>
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
#define pb push_back
int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
ll n;
int main(){
cin >> n;
n -= 7;
ll m = 1000000007;
ll a = to_string(n).length();
ll b = to_string(m).length();
cout << abs(a - b) << endl;
return 0;
}
kyawashell