#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define fo(i, n) for (int i = 0; i < n; i++)
#define fo1(i, n) for (int i = 1; i <= n; i++)
#define w(n) while (n--)
#define scl(n) scanf("%lld", &n)
#define scf(n) scanf("%lf", &n)
#define pfl(x) printf("%lld\n", x)
#define ps printf(" ")
#define INF 10000000
#define pb push_back
#define all(x) (x).begin(), (x).end()

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    float a, b;
    cin >> a >> b;

    cout << (a * b) / 100.0;
}

#define George_Plover
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <algorithm>
#define MAXN 1100000
#define LL long long
using namespace std;
int T;
int L,R;
int main()
{
    scanf("%d",&T);
    while(T--)
    {
        scanf("%d%d",&L,&R);
        if(L+L>R)
        {
            printf("0\n");
            continue;
        }
        printf("%lld\n",(R-L-L+1)*1ll*(R-L-L+2)/2);
    }
    return 0;
}
