| 记录编号 | 575229 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 3717.小凯的数字 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 1.012 s | ||
| 提交时间 | 2022-09-07 21:00:23 | 内存使用 | 0.73 MiB | ||
#include<cstdio>
using namespace std;
long long n,l,r;
int main()
{
freopen("xiaokai.in","r",stdin);
freopen("xiaokai.out","w",stdout);
scanf("%d",&n);
while(n--)
{
scanf("%lld%lld",&l,&r);
printf("%lld\n",((l%9+r%9)%9)*(((r%9+9-l%9+1)%9)*5)%9);
}
return 0;
}