Untitled
unknown
plain_text
a year ago
410 B
6
Indexable
#include <iostream>
using namespace std;
int main(void){
int t;
cin >> t;
for (int i = 0; i < t; i++)
{
int count = 0;
int n, k;
cin >> n >> k;
for (int j = 0; j < n; j++)
{
int x, y;
cin >> x >> y;
count += (k - 1) / x;
}
cout<< "Case " << (i + 1) <<": " << count;
}
return 0;
}Editor is loading...
Leave a Comment