답안 #20408

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
20408 2017-02-11T06:31:11 Z warning.or.kr(#43, exqt) 채점 시스템 (OJUZ11_judge) C++
0 / 100
179 ms 2020 KB
#include <iostream>
#include <algorithm>
#include <vector>
#include <cstring>
#include <fstream>
#include <string>
#include <map>
#include <queue>
#include <utility>
#include <stack>
#include <cstdio>
#include <cmath>
#include <set>
using namespace std;

#define in cin
#define out cout

#define REP(i,n) for(int i=0; i<n; i++)
#define REP2(i,s,e) for(int i=s; i<e; i++)
#define REPE(i,s,e) for(int i=s; i<=e; i++)
#define REPR(i,s,e) for(int i=s; i>=e; i--)

#define all(v) v.begin(), v.end()
#define pb push_back

#define ll long long
#define pii pair<int, int>

#define x first
#define y second
#define intINF 2147483647
#define llINF 9223372036854775807LL
#define MOD 1000000007

int main()
{
    int tc; in >> tc;
    while(tc--)
    {
        ll x, y; in >> x >> y;
        ll t = 1;
        while(t <= x) t *= 10;
        int r = 0;
        while(t+x <= y)
        {
            t *= 10;
            r++;
        }
        out << r << '\n';
    }

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 116 ms 2020 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 116 ms 2020 KB Output isn't correct
2 Incorrect 179 ms 2020 KB Output isn't correct
3 Runtime error 119 ms 2020 KB Execution timed out (wall clock limit exceeded)
4 Incorrect 133 ms 2020 KB Output isn't correct
5 Runtime error 106 ms 2020 KB Execution timed out (wall clock limit exceeded)
6 Incorrect 136 ms 2020 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 116 ms 2020 KB Output isn't correct
2 Incorrect 179 ms 2020 KB Output isn't correct
3 Runtime error 119 ms 2020 KB Execution timed out (wall clock limit exceeded)
4 Incorrect 133 ms 2020 KB Output isn't correct
5 Runtime error 106 ms 2020 KB Execution timed out (wall clock limit exceeded)
6 Incorrect 136 ms 2020 KB Output isn't correct
7 Incorrect 129 ms 2020 KB Output isn't correct
8 Runtime error 139 ms 2020 KB Execution timed out (wall clock limit exceeded)
9 Incorrect 139 ms 2020 KB Output isn't correct
10 Incorrect 146 ms 2020 KB Output isn't correct
11 Incorrect 166 ms 2020 KB Output isn't correct