diff --git a/src/2/P2455.cpp b/src/2/P2455.cpp index 0fc6a7d..8f14f83 100644 --- a/src/2/P2455.cpp +++ b/src/2/P2455.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include using ll = int64_t; @@ -33,9 +32,7 @@ bool isz(double a){ if(a > 1e-8 || a<-1e-8){ return false; } - // if(a!=0){ - // return false; - // } + return true; } @@ -47,16 +44,6 @@ int main(){ std::cin>>m[i][j]; } } - // std::random_device rd{}; - // std::uniform_int_distribution uid(1,n); - // ll asp[maxn]; - // for(ll i=1;i<=n;i++){ - // asp[i]=uid(rd); - // } - // for(ll i=1;i<=n/2;i++){ - // sp(m[i],m[asp[i]]); - // } - // pm(); for(ll i=1;i<=n;i++){ static ll nowused{1}; diff --git a/src/2/P3370.cpp b/src/2/P3370.cpp index 08595bb..32846e8 100644 --- a/src/2/P3370.cpp +++ b/src/2/P3370.cpp @@ -14,7 +14,7 @@ int n, ans = 1; int prime = 233317; const ull mod = 212370440130137957ll; -ull hashe(char s[]) { +ull mhash(char *s) { int len = strlen(s); ull ans = 0; for (int i = 0; i < len; i++) @@ -27,7 +27,7 @@ int main() { cin >> n; for (int i = 1; i <= n; i++) { cin >> s; - a[i] = hashe(s); + a[i] = mhash(s); } sort(a + 1, a + n + 1); for (int i = 1; i < n; i++) {