結果

問題 No.305 鍵(2)
ユーザー kuuso1kuuso1
提出日時 2015-11-27 23:34:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 1,227 bytes
コンパイル時間 4,312 ms
コンパイル使用メモリ 103,740 KB
実行使用メモリ 38,912 KB
平均クエリ数 57.62
最終ジャッジ日時 2023-09-23 22:05:13
合計ジャッジ時間 6,559 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
36,964 KB
testcase_01 AC 80 ms
34,760 KB
testcase_02 AC 80 ms
36,464 KB
testcase_03 AC 77 ms
36,616 KB
testcase_04 AC 79 ms
36,308 KB
testcase_05 AC 82 ms
36,568 KB
testcase_06 AC 79 ms
36,436 KB
testcase_07 AC 81 ms
36,772 KB
testcase_08 AC 79 ms
36,564 KB
testcase_09 AC 79 ms
38,912 KB
testcase_10 AC 80 ms
36,816 KB
testcase_11 AC 80 ms
38,524 KB
testcase_12 AC 80 ms
34,732 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		
		char[] ca="0000000000".ToCharArray();
		Console.WriteLine(new String(ca));
		var ss=rsa();
		int now=int.Parse(ss[0]);
		if(now==10)return;
		for(int i=0;i<10;i++){
			for(char c='1';c<='9';c++){
				ca[i]=c;
				Console.WriteLine(new String(ca));
				ss=rsa();
				int nxt=int.Parse(ss[0]);
				if(nxt>now){
					now=nxt;
					if(now==10)return;
					break;
				}
				ca[i]='0';
			}
		}
		
		
	}

	public Sol(){
	}




	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}
0