/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:3:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
 #define GetI64(x) scanf("%I64d",&x)
                                 ~~^~
 #define PutI64(x,arg...) printf("%I64d" arg,x)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 ~                                  
 ll mod;
 ~~~~~~~~                           
 
 ~                                  
 ll mul(ll a,ll b){
 ~~~~~~~~~~~~~~~~~~~                
     ll ans=0;
     ~~~~~~~~~~                     
     while(b){
     ~~~~~~~~~~                     
         if(b&1)ans=(ans+a)%mod;
         ~~~~~~~~~~~~~~~~~~~~~~~~   
         a=(a+a)%mod;
         ~~~~~~~~~~~~~              
         b>>=1;
         ~~~~~~~                    
     }
     ~~                             
     return ans;
     ~~~~~~~~~~~~                   
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 
 ~                                  
 struct mat{
 ~~~~~~~~~~~~                       
     int m,n;
     ~~~~~~~~~                      
     ll a[3][3];
     ~~~~~~~~~~~~                   
     mat(int M=0,int N=0){m=M;n=N;}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     void clear(){
     ~~~~~~~~~~~~~~                 
         for(int i=1;i<=m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~    
             for(int j=1;j<=n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~
                 a[i][j]=0;
                 ~~~~~~~~~~~        
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     ll*operator[](int d){return a[d];}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 };
 ~~~                                
 
 ~                                  
 mat operator*(mat a,mat b){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
     mat c(a.m,b.n);
     ~~~~~~~~~~~~~~~~               
     //a.n==b.m
     ~~~~~~~~~~~                    
     c.clear();
     ~~~~~~~~~~~                    
     for(int k=1;k<=a.n;++k){
     ~~~~~~~~~~~~~~~~~~~~~~~~~      
         for(int i=1;i<=a.m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~~~  
             for(int j=1;j<=b.n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]+=mul(a[i][k],b[k][j]);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]%=mod;
                 ~~~~~~~~~~~~~~     
                 if(c[i][j]<0)c[i][j]+=mod;
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     return c;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 mat operator^(mat x,ll p){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~        
     if(p==1)return x;
     ~~~~~~~~~~~~~~~~~~             
     if(p==2)return x*x;
     ~~~~~~~~~~~~~~~~~~~~           
     mat t=x^(p/2);
     ~~~~~~~~~~~~~~~                
     t=t*t;
     ~~~~~~~                        
     if(p&1)t=t*x;
     ~~~~~~~~~~~~~~                 
     return t;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 int main(){
 ~~~~~~~~~~~~                       
     ll m,a,c,x0,n,g;
     ~~~~~~~~~~~~~~~~~              
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
     ~~~~~~~~                       
foo.cc:62:5: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
     ^~~~~~
foo.cc:3:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
 #define GetI64(x) scanf("%I64d",&x)
                                 ~~^~
 #define PutI64(x,arg...) printf("%I64d" arg,x)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 ~                                  
 ll mod;
 ~~~~~~~~                           
 
 ~                                  
 ll mul(ll a,ll b){
 ~~~~~~~~~~~~~~~~~~~                
     ll ans=0;
     ~~~~~~~~~~                     
     while(b){
     ~~~~~~~~~~                     
         if(b&1)ans=(ans+a)%mod;
         ~~~~~~~~~~~~~~~~~~~~~~~~   
         a=(a+a)%mod;
         ~~~~~~~~~~~~~              
         b>>=1;
         ~~~~~~~                    
     }
     ~~                             
     return ans;
     ~~~~~~~~~~~~                   
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 
 ~                                  
 struct mat{
 ~~~~~~~~~~~~                       
     int m,n;
     ~~~~~~~~~                      
     ll a[3][3];
     ~~~~~~~~~~~~                   
     mat(int M=0,int N=0){m=M;n=N;}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     void clear(){
     ~~~~~~~~~~~~~~                 
         for(int i=1;i<=m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~    
             for(int j=1;j<=n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~
                 a[i][j]=0;
                 ~~~~~~~~~~~        
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     ll*operator[](int d){return a[d];}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 };
 ~~~                                
 
 ~                                  
 mat operator*(mat a,mat b){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
     mat c(a.m,b.n);
     ~~~~~~~~~~~~~~~~               
     //a.n==b.m
     ~~~~~~~~~~~                    
     c.clear();
     ~~~~~~~~~~~                    
     for(int k=1;k<=a.n;++k){
     ~~~~~~~~~~~~~~~~~~~~~~~~~      
         for(int i=1;i<=a.m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~~~  
             for(int j=1;j<=b.n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]+=mul(a[i][k],b[k][j]);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]%=mod;
                 ~~~~~~~~~~~~~~     
                 if(c[i][j]<0)c[i][j]+=mod;
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     return c;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 mat operator^(mat x,ll p){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~        
     if(p==1)return x;
     ~~~~~~~~~~~~~~~~~~             
     if(p==2)return x*x;
     ~~~~~~~~~~~~~~~~~~~~           
     mat t=x^(p/2);
     ~~~~~~~~~~~~~~~                
     t=t*t;
     ~~~~~~~                        
     if(p&1)t=t*x;
     ~~~~~~~~~~~~~~                 
     return t;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 int main(){
 ~~~~~~~~~~~~                       
     ll m,a,c,x0,n,g;
     ~~~~~~~~~~~~~~~~~              
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
     ~~~~~~~~~~~~~~~~~~             
foo.cc:62:15: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
               ^~~~~~
foo.cc:3:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
 #define GetI64(x) scanf("%I64d",&x)
                                 ~~^~
 #define PutI64(x,arg...) printf("%I64d" arg,x)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 ~                                  
 ll mod;
 ~~~~~~~~                           
 
 ~                                  
 ll mul(ll a,ll b){
 ~~~~~~~~~~~~~~~~~~~                
     ll ans=0;
     ~~~~~~~~~~                     
     while(b){
     ~~~~~~~~~~                     
         if(b&1)ans=(ans+a)%mod;
         ~~~~~~~~~~~~~~~~~~~~~~~~   
         a=(a+a)%mod;
         ~~~~~~~~~~~~~              
         b>>=1;
         ~~~~~~~                    
     }
     ~~                             
     return ans;
     ~~~~~~~~~~~~                   
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 
 ~                                  
 struct mat{
 ~~~~~~~~~~~~                       
     int m,n;
     ~~~~~~~~~                      
     ll a[3][3];
     ~~~~~~~~~~~~                   
     mat(int M=0,int N=0){m=M;n=N;}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     void clear(){
     ~~~~~~~~~~~~~~                 
         for(int i=1;i<=m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~    
             for(int j=1;j<=n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~
                 a[i][j]=0;
                 ~~~~~~~~~~~        
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     ll*operator[](int d){return a[d];}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 };
 ~~~                                
 
 ~                                  
 mat operator*(mat a,mat b){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
     mat c(a.m,b.n);
     ~~~~~~~~~~~~~~~~               
     //a.n==b.m
     ~~~~~~~~~~~                    
     c.clear();
     ~~~~~~~~~~~                    
     for(int k=1;k<=a.n;++k){
     ~~~~~~~~~~~~~~~~~~~~~~~~~      
         for(int i=1;i<=a.m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~~~  
             for(int j=1;j<=b.n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]+=mul(a[i][k],b[k][j]);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]%=mod;
                 ~~~~~~~~~~~~~~     
                 if(c[i][j]<0)c[i][j]+=mod;
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     return c;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 mat operator^(mat x,ll p){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~        
     if(p==1)return x;
     ~~~~~~~~~~~~~~~~~~             
     if(p==2)return x*x;
     ~~~~~~~~~~~~~~~~~~~~           
     mat t=x^(p/2);
     ~~~~~~~~~~~~~~~                
     t=t*t;
     ~~~~~~~                        
     if(p&1)t=t*x;
     ~~~~~~~~~~~~~~                 
     return t;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 int main(){
 ~~~~~~~~~~~~                       
     ll m,a,c,x0,n,g;
     ~~~~~~~~~~~~~~~~~              
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
foo.cc:62:25: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
                         ^~~~~~
foo.cc:3:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
 #define GetI64(x) scanf("%I64d",&x)
                                 ~~^~
 #define PutI64(x,arg...) printf("%I64d" arg,x)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 ~                                  
 ll mod;
 ~~~~~~~~                           
 
 ~                                  
 ll mul(ll a,ll b){
 ~~~~~~~~~~~~~~~~~~~                
     ll ans=0;
     ~~~~~~~~~~                     
     while(b){
     ~~~~~~~~~~                     
         if(b&1)ans=(ans+a)%mod;
         ~~~~~~~~~~~~~~~~~~~~~~~~   
         a=(a+a)%mod;
         ~~~~~~~~~~~~~              
         b>>=1;
         ~~~~~~~                    
     }
     ~~                             
     return ans;
     ~~~~~~~~~~~~                   
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 
 ~                                  
 struct mat{
 ~~~~~~~~~~~~                       
     int m,n;
     ~~~~~~~~~                      
     ll a[3][3];
     ~~~~~~~~~~~~                   
     mat(int M=0,int N=0){m=M;n=N;}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     void clear(){
     ~~~~~~~~~~~~~~                 
         for(int i=1;i<=m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~    
             for(int j=1;j<=n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~
                 a[i][j]=0;
                 ~~~~~~~~~~~        
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     ll*operator[](int d){return a[d];}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 };
 ~~~                                
 
 ~                                  
 mat operator*(mat a,mat b){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
     mat c(a.m,b.n);
     ~~~~~~~~~~~~~~~~               
     //a.n==b.m
     ~~~~~~~~~~~                    
     c.clear();
     ~~~~~~~~~~~                    
     for(int k=1;k<=a.n;++k){
     ~~~~~~~~~~~~~~~~~~~~~~~~~      
         for(int i=1;i<=a.m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~~~  
             for(int j=1;j<=b.n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]+=mul(a[i][k],b[k][j]);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]%=mod;
                 ~~~~~~~~~~~~~~     
                 if(c[i][j]<0)c[i][j]+=mod;
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     return c;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 mat operator^(mat x,ll p){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~        
     if(p==1)return x;
     ~~~~~~~~~~~~~~~~~~             
     if(p==2)return x*x;
     ~~~~~~~~~~~~~~~~~~~~           
     mat t=x^(p/2);
     ~~~~~~~~~~~~~~~                
     t=t*t;
     ~~~~~~~                        
     if(p&1)t=t*x;
     ~~~~~~~~~~~~~~                 
     return t;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 int main(){
 ~~~~~~~~~~~~                       
     ll m,a,c,x0,n,g;
     ~~~~~~~~~~~~~~~~~              
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:62:35: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
                                   ^~~~~~
foo.cc:3:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
 #define GetI64(x) scanf("%I64d",&x)
                                 ~~^~
 #define PutI64(x,arg...) printf("%I64d" arg,x)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 ~                                  
 ll mod;
 ~~~~~~~~                           
 
 ~                                  
 ll mul(ll a,ll b){
 ~~~~~~~~~~~~~~~~~~~                
     ll ans=0;
     ~~~~~~~~~~                     
     while(b){
     ~~~~~~~~~~                     
         if(b&1)ans=(ans+a)%mod;
         ~~~~~~~~~~~~~~~~~~~~~~~~   
         a=(a+a)%mod;
         ~~~~~~~~~~~~~              
         b>>=1;
         ~~~~~~~                    
     }
     ~~                             
     return ans;
     ~~~~~~~~~~~~                   
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 
 ~                                  
 struct mat{
 ~~~~~~~~~~~~                       
     int m,n;
     ~~~~~~~~~                      
     ll a[3][3];
     ~~~~~~~~~~~~                   
     mat(int M=0,int N=0){m=M;n=N;}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     void clear(){
     ~~~~~~~~~~~~~~                 
         for(int i=1;i<=m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~    
             for(int j=1;j<=n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~
                 a[i][j]=0;
                 ~~~~~~~~~~~        
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     ll*operator[](int d){return a[d];}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 };
 ~~~                                
 
 ~                                  
 mat operator*(mat a,mat b){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
     mat c(a.m,b.n);
     ~~~~~~~~~~~~~~~~               
     //a.n==b.m
     ~~~~~~~~~~~                    
     c.clear();
     ~~~~~~~~~~~                    
     for(int k=1;k<=a.n;++k){
     ~~~~~~~~~~~~~~~~~~~~~~~~~      
         for(int i=1;i<=a.m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~~~  
             for(int j=1;j<=b.n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]+=mul(a[i][k],b[k][j]);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]%=mod;
                 ~~~~~~~~~~~~~~     
                 if(c[i][j]<0)c[i][j]+=mod;
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     return c;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 mat operator^(mat x,ll p){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~        
     if(p==1)return x;
     ~~~~~~~~~~~~~~~~~~             
     if(p==2)return x*x;
     ~~~~~~~~~~~~~~~~~~~~           
     mat t=x^(p/2);
     ~~~~~~~~~~~~~~~                
     t=t*t;
     ~~~~~~~                        
     if(p&1)t=t*x;
     ~~~~~~~~~~~~~~                 
     return t;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 int main(){
 ~~~~~~~~~~~~                       
     ll m,a,c,x0,n,g;
     ~~~~~~~~~~~~~~~~~              
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:62:46: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
                                              ^~~~~~
foo.cc:3:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
 #define GetI64(x) scanf("%I64d",&x)
                                 ~~^~
 #define PutI64(x,arg...) printf("%I64d" arg,x)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 ~                                  
 ll mod;
 ~~~~~~~~                           
 
 ~                                  
 ll mul(ll a,ll b){
 ~~~~~~~~~~~~~~~~~~~                
     ll ans=0;
     ~~~~~~~~~~                     
     while(b){
     ~~~~~~~~~~                     
         if(b&1)ans=(ans+a)%mod;
         ~~~~~~~~~~~~~~~~~~~~~~~~   
         a=(a+a)%mod;
         ~~~~~~~~~~~~~              
         b>>=1;
         ~~~~~~~                    
     }
     ~~                             
     return ans;
     ~~~~~~~~~~~~                   
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 
 ~                                  
 struct mat{
 ~~~~~~~~~~~~                       
     int m,n;
     ~~~~~~~~~                      
     ll a[3][3];
     ~~~~~~~~~~~~                   
     mat(int M=0,int N=0){m=M;n=N;}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     void clear(){
     ~~~~~~~~~~~~~~                 
         for(int i=1;i<=m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~    
             for(int j=1;j<=n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~
                 a[i][j]=0;
                 ~~~~~~~~~~~        
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     ll*operator[](int d){return a[d];}
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 };
 ~~~                                
 
 ~                                  
 mat operator*(mat a,mat b){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
     mat c(a.m,b.n);
     ~~~~~~~~~~~~~~~~               
     //a.n==b.m
     ~~~~~~~~~~~                    
     c.clear();
     ~~~~~~~~~~~                    
     for(int k=1;k<=a.n;++k){
     ~~~~~~~~~~~~~~~~~~~~~~~~~      
         for(int i=1;i<=a.m;++i){
         ~~~~~~~~~~~~~~~~~~~~~~~~~  
             for(int j=1;j<=b.n;++j){
             ~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]+=mul(a[i][k],b[k][j]);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 c[i][j]%=mod;
                 ~~~~~~~~~~~~~~     
                 if(c[i][j]<0)c[i][j]+=mod;
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
             }
             ~~                     
         }
         ~~                         
     }
     ~~                             
     return c;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 mat operator^(mat x,ll p){
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~        
     if(p==1)return x;
     ~~~~~~~~~~~~~~~~~~             
     if(p==2)return x*x;
     ~~~~~~~~~~~~~~~~~~~~           
     mat t=x^(p/2);
     ~~~~~~~~~~~~~~~                
     t=t*t;
     ~~~~~~~                        
     if(p&1)t=t*x;
     ~~~~~~~~~~~~~~                 
     return t;
     ~~~~~~~~~~                     
 }
 ~~                                 
 
 ~                                  
 
 ~                                  
 int main(){
 ~~~~~~~~~~~~                       
     ll m,a,c,x0,n,g;
     ~~~~~~~~~~~~~~~~~              
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:62:56: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
                                                        ^~~~~~
foo.cc:4:46: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
 #define PutI64(x,arg...) printf("%I64d" arg,x)
                                              ^
foo.cc:75:5: note: in expansion of macro 'PutI64'
     PutI64(x,"\n");
     ^~~~~~
foo.cc:3:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 #define GetI64(x) scanf("%I64d",&x)
                   ~~~~~^~~~~~~~~~~~
foo.cc:62:5: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
     ^~~~~~
foo.cc:3:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 #define GetI64(x) scanf("%I64d",&x)
                   ~~~~~^~~~~~~~~~~~
foo.cc:62:15: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
               ^~~~~~
foo.cc:3:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 #define GetI64(x) scanf("%I64d",&x)
                   ~~~~~^~~~~~~~~~~~
foo.cc:62:25: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
                         ^~~~~~
foo.cc:3:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 #define GetI64(x) scanf("%I64d",&x)
                   ~~~~~^~~~~~~~~~~~
foo.cc:62:35: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
                                   ^~~~~~
foo.cc:3:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 #define GetI64(x) scanf("%I64d",&x)
                   ~~~~~^~~~~~~~~~~~
foo.cc:62:46: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
                                              ^~~~~~
foo.cc:3:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 #define GetI64(x) scanf("%I64d",&x)
                   ~~~~~^~~~~~~~~~~~
foo.cc:62:56: note: in expansion of macro 'GetI64'
     GetI64(m);GetI64(a);GetI64(c);GetI64(x0);GetI64(n);GetI64(g);
                                                        ^~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 0. 0ms 256.0 KiB
#2 Wrong Answer Read 32, expect 1. 0ms 256.0 KiB
#3 Wrong Answer Read -2053911950, expect 81. 0ms 256.0 KiB
#4 Wrong Answer Read 1551452471, expect 261. 0ms 256.0 KiB
#5 Wrong Answer Read 1193069775, expect 2101. 0ms 256.0 KiB
#6 Wrong Answer Read 638805685, expect 6631. 0ms 256.0 KiB
#7 Wrong Answer Read 1061176320, expect 201. 0ms 256.0 KiB
#8 Wrong Answer Read -1272873261, expect 255. 1ms 256.0 KiB
#9 Wrong Answer Read -2086052844, expect 72708993. 1ms 256.0 KiB
#10 Wrong Answer Read 1864499001, expect 9662152. 1ms 256.0 KiB
#11 Wrong Answer Read -708671542, expect 1825155. 1ms 256.0 KiB
#12 Wrong Answer Read -1394757003, expect 316481. 1ms 256.0 KiB
#13 Wrong Answer Read -92378141, expect 1118145. 1ms 256.0 KiB
#14 Wrong Answer Read 2141741669, expect 809061. 1ms 256.0 KiB
#15 Wrong Answer Read -336510886, expect 10845881. 1ms 256.0 KiB
#16 Wrong Answer Read 785886439, expect 947514. 1ms 256.0 KiB
#17 Wrong Answer Read -905954358, expect 6555659. 1ms 256.0 KiB
#18 Wrong Answer Read 346346046, expect 53255140. 0ms 256.0 KiB
#19 Wrong Answer Read 1635840276, expect 54405008. 1ms 256.0 KiB
#20 Wrong Answer Read -109859720, expect 85185812. 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1725 随机数生成器
语言
C++
递交时间
2021-04-17 21:03:31
评测时间
2021-04-17 21:03:31
评测机
分数
0
总耗时
20ms
峰值内存
256.0 KiB