/*// Ih Badhon Chowdhury //*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long long double
#define sp " "
#define pb push_back
#define cinv(v) for(auto &i:v) cin >> i;
#define vi vector<int>
#define vii vector<ll>
#define cout(v) for(auto e:v) cout << e << sp;
#define M 1e5
#define yes cout << "YES" << endl
#define no cout << "NO" << endl
#define case "Case " << test++ << ": "
#define all(v) v.begin(), v.end()
#define tst int tst; int test=1; cin >> tst; while(tst--)
#define Faster ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define nl "\n"
void solve()
{
//start
}
// Driver Code
int main()
{
Faster;
ll tc = 1, test = 1;
//cin >> tc;
while(tc--){
//solve();
int n, s;
cin >> n >> s;
int res = 100;
bool ok = 0;
while(n--)
{
int x, y;
cin >> x >> y;
if(x<s){
if(y)
res = min(res,y);
}
if(x<s or x==s and y==0)
ok = 1;
}
if(ok) cout << 100 - res;
else cout << -1 << nl;
}
}
1374C - Move Brackets | 1476A - K-divisible Sum |
1333A - Little Artem | 432D - Prefixes and Suffixes |
486A - Calculating Function | 1373B - 01 Game |
1187A - Stickers and Toys | 313B - Ilya and Queries |
579A - Raising Bacteria | 723A - The New Year Meeting Friends |
302A - Eugeny and Array | 1638B - Odd Swap Sort |
1370C - Number Game | 1206B - Make Product Equal One |
131A - cAPS lOCK | 1635A - Min Or Sum |
474A - Keyboard | 1343A - Candies |
1343C - Alternating Subsequence | 1325A - EhAb AnD gCd |
746A - Compote | 318A - Even Odds |
550B - Preparing Olympiad | 939B - Hamster Farm |
732A - Buy a Shovel | 1220C - Substring Game in the Lesson |
452A - Eevee | 1647B - Madoka and the Elegant Gift |
1408A - Circle Coloring | 766B - Mahmoud and a Triangle |