# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
20658 | 2017-02-13T10:48:54 Z | 우리OJ(#80, cki86201) | 채점 시스템 (OJUZ11_judge) | C++14 | 169 ms | 2020 KB |
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <memory.h> #include <math.h> #include <assert.h> #include <queue> #include <map> #include <set> #include <string> #include <algorithm> #include <iostream> #include <functional> #include <unordered_map> #include <unordered_set> #include <list> #include <bitset> using namespace std; typedef pair<int, int> Pi; typedef long long ll; #define pii Pi #define pll PL #define Fi first #define Se second #define pb(x) push_back(x) #define sz(x) ((int)(x).size()) #define rep(i, n) for(int i=0;i<n;i++) #define all(x) (x).begin(), (x).end() typedef tuple<int, int, int> t3; typedef pair<ll, ll> PL; void solve(){ int n, m; cin >> n >> m; ll L = 1; while(L <= n)L *= 10; int ans = 0; while(1){ if(n + L <= m)ans++, L *= 10; else break; } cout << ans << endl; } int main(){ int Tc = 1; scanf("%d", &Tc); for(int tc=1;tc<=Tc;tc++){ //printf("Case #%d: ", tc); solve(); } return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 93 ms | 2020 KB | Output isn't correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 93 ms | 2020 KB | Output isn't correct |
2 | Incorrect | 169 ms | 2020 KB | Output isn't correct |
3 | Incorrect | 119 ms | 2020 KB | Output isn't correct |
4 | Incorrect | 163 ms | 2020 KB | Output isn't correct |
5 | Incorrect | 126 ms | 2020 KB | Output isn't correct |
6 | Incorrect | 133 ms | 2020 KB | Output isn't correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 93 ms | 2020 KB | Output isn't correct |
2 | Incorrect | 169 ms | 2020 KB | Output isn't correct |
3 | Incorrect | 119 ms | 2020 KB | Output isn't correct |
4 | Incorrect | 163 ms | 2020 KB | Output isn't correct |
5 | Incorrect | 126 ms | 2020 KB | Output isn't correct |
6 | Incorrect | 133 ms | 2020 KB | Output isn't correct |
7 | Incorrect | 143 ms | 2020 KB | Output isn't correct |
8 | Incorrect | 169 ms | 2020 KB | Output isn't correct |
9 | Incorrect | 149 ms | 2020 KB | Output isn't correct |
10 | Incorrect | 146 ms | 2020 KB | Output isn't correct |
11 | Incorrect | 133 ms | 2020 KB | Output isn't correct |