結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
kuuso1
|
| 提出日時 | 2015-11-27 23:34:47 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 2,000 ms |
| コード長 | 1,227 bytes |
| コンパイル時間 | 4,109 ms |
| コンパイル使用メモリ | 115,288 KB |
| 実行使用メモリ | 42,800 KB |
| 平均クエリ数 | 57.62 |
| 最終ジャッジ日時 | 2024-07-16 21:51:02 |
| 合計ジャッジ時間 | 3,595 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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));}
}
kuuso1