#70. [R12D]二维gcd和3
[R12D]二维gcd和3
时空限制
1S/512M
题目描述
求 。
格式
输入格式
第一行包含一个整数 ,含义与题目描述相同。
输出格式
输出一个整数表示答案。对 取模。
样例
样例输入 #1
样例输出 #1
样例输入 #2
样例输出 #2
样例输入 #3
样例输出 #3
数据规模
对于 的数据,。
对于 的数据,。
Related
In following contests:
In following contests:
By signing up a 代码源竞赛平台 universal account, you can submit code and join discussions in all online judging services provided by us.