Tên đăng nhập Điểm ▾ Bài tập Giới thiệu
35701
Bill
Lê Đăng Viên / TK 17
0 0

Lê Đăng Viên
TK 17

35701 0 0
35701 0 0
35701 0 0
35701
6A1TranLeGiaKhiem
6A1TranLeGiaKhiem
0 0
35701 0 0
35701 0 0
35701 0 0
35701
maidoanhoanglong
Mai Đoàn Hoàng Lor
0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0

Missed VOI

35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701
fanweekly
fanweekly
0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0

include<bits/stdc++.h>

using namespace std;

int check(int n){
int num = n % 10;
n /= 10;
while (n)
{
if(n % 10 != num){
return false;
}
n/= 10;
}
return true;
}
int main(){
long long x ;
cin >> x ;
long long n = x;
while (check(n) == false){
++n;
}
int s = n - x;
cout << s << endl;
system("pause");
}
// 123 23

35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0

hihi

35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0
35701 0 0