結果

問題 No.123 カードシャッフル
ユーザー ぴろずぴろず
提出日時 2015-01-12 01:42:02
言語 Whitespace
(0.4)
結果
TLE  
実行時間 -
コード長 1,630 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 5,220 KB
実行使用メモリ 8,768 KB
最終ジャッジ日時 2023-09-04 04:58:07
合計ジャッジ時間 7,044 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,484 KB
testcase_01 AC 3 ms
4,560 KB
testcase_02 AC 3 ms
4,560 KB
testcase_03 AC 4 ms
4,644 KB
testcase_04 AC 3 ms
4,732 KB
testcase_05 AC 4 ms
4,624 KB
testcase_06 AC 3 ms
4,728 KB
testcase_07 AC 3 ms
4,644 KB
testcase_08 AC 3 ms
4,612 KB
testcase_09 AC 3 ms
4,644 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

asm("mark\soutchar;outchar;push\s0;return"); asm("mark\soutnum;outnum;push\s0;return"); asm("mark\sreadchar;push\s0;dup;readchar;retrieve;return"); asm("mark\sreadnum;push\s0;dup;readnum;retrieve;return");	asm("mark\snextInt;push\s0;mark\snextIntloop;push\s0;dup;readchar;retrieve;push\s48;sub;dup;jneg\snextIntend;dup;push\s9;swap;sub;jneg\snextIntend;swap;push\s10;mul;add;jump\snextIntloop;mark\snextIntend;disc;return"); var n;
var m; var i2;	var
target	=	1; def
main() {	n	<==	nextInt();
m
<==
nextInt();
for(i2
<== 0; *i2	< *m;	i2 <==	*i2
+	1)
{ asm("call\snextInt"); } for(i2 <== 0; *i2
<
*m;	i2
<==
*i2 + 1)	{	asm(".push\n.name\sp"); if(*target >
p)	{
continue; }	if (*target == 1) {
target
<==	p;
}else{
target <== *target	-	1; } }	outnum(*target);
outchar('\n'); }   
 
 	
	 			
	

  	 			
    
 
 	
					
	

   
    

  	   	
    
 
 	
	 			   		    
	  	 
 
			
 
    	  	
 
		  	
			
 
	   	 	 
	  
	   
 
	   	

  	
 


	

  		

 	 
 
    	
 
			  


 	 
 
    	 
 
			  

    
 
    		
 
			  


  	 
   		
			   	 
				  	
				 
    

 
			

  		 
   	

  			

	 	 		 

 	 

  		   
   		
			   	
	    
    		
 
			  


 
	 

  	 		 
    
 
    		
 
			  


  	   
   		
			   	 
				  	
			  	
    

 
	 	 

  	  	
   	

  	 	 

	 	  
   	  
			 	  	
 
		  	
			 		
    

 
		 	

  	 		
   	

  		 	

	 			 
 


 
	 	

 
	    

  			 

  	    
   	  
			   	
	  	
	 	  	 
    

 
	  		

  	  	 
   	

  	  		

	 				
 
  
    	  
 
			  


 
	 	  

  				
   	  
			   	
	  	 
    	  
 
			  


  	 	  
 


  	 	
   		
			   	
	    
    		
 
			  


 
	   

  	  
   	  
			
 			  
 

   	 	 

 		 	 	
 

    

	
0