#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
    float a,b;
    cin>>a>>b;
    cout<<a/100*b<<endl;
}
#include <bits/stdc++.h>
using namespace std;

int main() {
  long long T;
  cin>>T;
  for(long long a=0;a<T;a++){
    long long L,R;
    cin>>L>>R;
    if(R>=2*L){
      cout<<((R-2*L+1)*(1+R-2*L+1))/2<<endl;
    }
    else{
      cout<<'0'<<endl;
    }
    
  }
}
