原创 2017百毒之星第一場

A題 答案爲p^n mod b = 1的個數,就是d(p-1) #include <iostream> #include <bits/stdc++.h> #define ll long long using namespace std;

原创 Date類的使用

時間和日期處理,在一個應用中都是很重要的,掌握時間和日期類的處理也是很重要的。Java中的Calendar類和Date類,在java.util包下。在JDK1.0中,Date類是唯一處理時間的類,但是由於Date類中方法比較少並且有一些方

原创 hdu 5651

#include <iostream> #include <string.h> using namespace std; typedef __int64 lld; string s; lld T,factor[1010],ans,k,nu

原创 hdu 5528

#include <iostream> #include <cstdio> #include <cmath> #include <algorithm> #include <cstring> #include <string> #inclu

原创 2017多校第9場

1002 離線詢問,把每個詢問變成 q[b]-q[a-1] ,抄一個樹鏈剖分的模板 #include<cstdio> #include<cstring> #include<cstdlib> #include <algorithm> #i

原创 hdu 5583

#include <iostream> #include <string.h> #include <cstdio> using namespace std; long k=0,pos[200000]; long long calc(st