1007 - Mathematically Hard PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 64 MB Mathematically some problems look hard. But with the help of the computer, some problems can be easily solvable. In this problem, you will be giv…
预先处理好phi数组和前缀和,水题. #include<cstdio> #include<string> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int MAXN = 5e6+10; unsigned long long int phi[MAXN]; void init(){ for(int i = 1;i < M…
// Problem#: 1007// Submission#: 4893204// The source code is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License// URI: http://creativecommons.org/licenses/by-nc-sa/3.0/// All Copyright reserved by Informatic La…