#include<stdio.h>intmain(){int t;for(scanf("%d",&t);t--;){longlong n, d, c =0, t =9;scanf("%lld %lld",&n,&d);while(t <= d){static_cast<void>(c++), t = t *10+9;}printf("%lld\n",n * c);}return0;}
Educational Codeforces Round 80 (Rated for Div. 2) B
B. Yet Another Meme Problem传送门#include<stdio.h>int main(){ int t; for(scanf("%d",&t);t--;) { long long n, d, c = 0, t = 9; scanf("%lld %lld",&n,&d); ...