結果

問題 No.677 10^Nの約数
ユーザー maimai
提出日時 2018-09-25 23:25:30
言語 Whitespace
(0.4)
結果
MLE  
実行時間 -
コード長 4,360 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 823,296 KB
最終ジャッジ日時 2024-04-16 06:29:57
合計ジャッジ時間 8,697 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
10,752 KB
testcase_01 AC 15 ms
6,656 KB
testcase_02 AC 30 ms
8,576 KB
testcase_03 AC 44 ms
8,704 KB
testcase_04 AC 63 ms
9,472 KB
testcase_05 AC 87 ms
9,984 KB
testcase_06 AC 115 ms
11,136 KB
testcase_07 AC 156 ms
12,288 KB
testcase_08 AC 245 ms
15,232 KB
testcase_09 AC 278 ms
18,432 KB
testcase_10 AC 361 ms
24,960 KB
testcase_11 AC 498 ms
24,448 KB
testcase_12 AC 547 ms
25,600 KB
testcase_13 AC 784 ms
43,904 KB
testcase_14 MLE -
testcase_15 MLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

func:swap(p,q){let:t;t=*p;*p=*q;*q=t;}func:qsort(begin,end){if(end-begin<=1){return;}let:pv(begin),it(begin+1);while(it<end){if(*pv>*it){swap(pv+1,it);swap(pv,pv+1);pv+=1;}it+=1;}qsort(begin,pv);qsort(pv+1,end);}func:pow(x,p){if(p<=0){return:1;}else{return:x*pow(x,p-1);}}func:main(){let:n,m,x(1);let:stk[199],cnt(0);m=n=__geti();while(m>=1){x*=10;m-=1;}let:i(0),j(0);while(i<=n){j=0;while(j<=n){stk[cnt]=pow(2,i)*pow(5,j);cnt+=1;j+=1;}i+=1;}stk[cnt]=0;qsort(&stk,&stk+cnt);i=0;while(i<cnt){if(stk[i]!=stk[i+1]){__puti(stk[i]);__putc('\n');i+=1;}}}   	 
   	   
		    		
   	   
		 
 
 

   	 

	  		
 
	
   		
 


	

   	  

		 	 	
 
	
   	 	
 


	

   		 

	  			
 
 
	  			
 

   	

	

   			
 

   

	

   	   

	  	  	
 

   	

	

   	  	

	  	 	 
   	

	

   	 	 
   

	

   

 
 	   	

   	    
   	 
			   		
			 
    	 
 
			    		
	      		
 
			    	  
 
			    	 	
   	
   	 
				   		    	 	
			 
			    	 	
			  		
	    
			    	  
			   	 
   	 
				    
    
   	 
				   								 			 

   
   	 
				   			 
    	
   	 
				   								 			 

   	
   	 
				   			 
    	 
   	 
				   					 			 

   	 
			   		
 
			    	 
 
			    

	

   	   	

 
 	  		

   	  	 
   	 
			   		
			 
    	 
 
			    	  
	      		
 
			    	  
 
			    	 	
   	
   	 
				   		    	 	
			 
			    	 	
			  		
	    
			    	  
			
   	 	  
   	
   	 
				   			   
   	 
				   				  	   	
 
		  	
		 	 	 	
   	 
			   		
 
			    	 
 
			    

	

   	 	 	
   	 
   	 
				    
    
	      
   	 
				   					    	
	      
   	 
				   			   	
	   		 
   	 		 
   	
   
   		
   	 
				   			   	
   	 
				   				  	
 	 	  

	  	 			

   		   
   	
   
   	 
   	 
				   						   		
   	 
				   						 
		  	
 	 	  

	  		  	
   	 
   	 
				   			   	
	      		
   	 
				   			
 	 	    
 

   	 
   	 
				   			   	 
   	 
				   			   	
	   
 	 	    
 

   	 
   	 
				    
  
 			   	
	   		 			 


   		  	
   		
   	 
				    
  
 			   	
	   		 			 


 
 	 		 

   	 			
   
   	 
				   			   	 
   	 
				   			
 	 	  	 
 

   	 
   	 
				   			   	
	      	
   	 
				   			
 	 	  	 
 

   	 
			   		
 
			    	 
 
			    

	

   	  		

 
 		 		

   		 	 
   	 
			   		
			 
    	 
 
			    	 
	      		
 
			    	  
 
			    	 	
   	
   	 
				   		    	 	
			 
			    	 	
			  		
	    
			    	  
			
   			  
   	
   	 
				   			   
 
		  	
		 			 	
   	
 
	   	 
			   		
 
			    	 
 
			 
	

 
 					

   			 	

   				 
   
   	 
				   			   
   	 
				   			   	
   	 
				   			   	
	  	
 	 		 	 
	  
 
	   	 
			   		
 
			    	 
 
			 
	

   					
   	 
			   		
 
			    	 
 
			    

	

   		 		

 
 	    	

   	     
   	 
			   		
			 
    	 
 
			    		  		 	
	      		
 
			    	 
   	 
				      
	      	
		    		  	 	 
   	 
				      
	      
		    	
   	 
				    
    
   	 
				    
    	  
	
		   	  
					 					 			 


   	   	 
   
   	
   	
   	 
				   			   	
	  	
 	 	  

	  	   		
   	 
   	 
				    
  
 			   	 	 
	  
		 			 

   	
   	 
				    
  
 			   	
	  			 			 


 
 	   	 

   	   		
   		  	 		
   	 
				    
    
	      
		    	
	      
		 
   	  	  
   
   	
   		  	 		
   	 
				   			   
   	 
				   			 
		  	
 	 	  

	  	  	 	
   		  		  
   	 
				    
    
		 			 


   	  		 
   
   	
   		  		  
   	 
				   			   
   	 
				   			 
		  	
 	 	  

	  	  			
   		
   	 
				      		  	 	 
   	 
				   				    
    	 
   		  	 		
   	 
				   			
 	 		 	 
   	 	
   		  		  
   	 
				   			
 	 		 	 
	  
		 			 

   		  	 	 
   	 
				    
  
 			   	
	   		 			 

   		  		  
   	 
				    
  
 			   	
	   		 			 


 
 	  		 

   	  			
   		  	 		
   	 
				    
  
 			   	
	   		 			 


 
 	  	  

   	  	 	
   		
   	 
				      		  	 	 
   	 
				   				    
    
		 			 

   		
   	 
				      		
   	 
				      		  	 	 
   	 
				   				   
 	 	  	 
 

   		  	 		
   	 
				    
    
		 			 


   	 	   
   	
   
   		  	 		
   	 
				   			   		  	 	 
   	 
				   				  	
 	 	  

	  	 	  	

   	 	 	 
   		
   	 
				      		  	 		
   	 
				   				   			   		
   	 
				      		  	 		
   	 
				   			   	
	   	   				  	
	  	 	 		
   		
   	 
				      		  	 		
   	 
				   				   			 
 	
 	 

   	 	 
 
 	
   

   		  	 		
   	 
				    
  
 			   	
	   		 			 


   	 	 		

 
 	 	   

   	 	  	
   	 
			   		
 
			    	 
 
			    

	

   	    	

 	 	     



0