LaTeX
查看原帖
LaTeX
672281
InversionShadow楼主2024/1/15 20:06

输入数据组数 tt。

接下来 tt 行每行给定一个数字 nn,输出:

∑a=1n∑b=1n[gcd⁡(a,b)=(axor⁡b)]\sum\limits_{a=1}^n\sum\limits_{b=1}^n[\gcd(a,b)=(a\operatorname{xor} b)]

其中 xor⁡\operatorname{xor} 表示按位异或。

输出格式见样例。

translated by @AdzearDisjudge

2024/1/15 20:06
加载中...