From 63a6a481a41c8816f2307346079bd481adf91768 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sat, 10 Aug 2024 12:20:24 +0800 Subject: [PATCH] update --- day7/P3372/P3372.cpp | 4 +--- test.cpp | 28 ++-------------------------- 2 files changed, 3 insertions(+), 29 deletions(-) diff --git a/day7/P3372/P3372.cpp b/day7/P3372/P3372.cpp index 0793c99..83b7654 100644 --- a/day7/P3372/P3372.cpp +++ b/day7/P3372/P3372.cpp @@ -1,9 +1,7 @@ #include using namespace std; -const int MAX_N = 1e5+5; +// const int MAX_N = 1e5+5; int main(){ - int n,m; - } \ No newline at end of file diff --git a/test.cpp b/test.cpp index dc421a6..bafb007 100644 --- a/test.cpp +++ b/test.cpp @@ -1,28 +1,4 @@ -#include -using namespace std; -#define int long long - - - -signed main(){ - int b,e,m; - #ifdef OITEST - b=2;e=10;m=9; - #endif - #ifndef OITEST - cin>>b>>e>>m; - #endif +#include +int main(){ - int r=1; - while(e>0){ - if (e%2==1) { - r=(r*b)%m; - } - e=(e>>1); - b=(b*b)%m; - } - cout<