結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
AreTrash
|
| 提出日時 | 2016-09-03 20:03:52 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 2,000 ms |
| コード長 | 806 bytes |
| コンパイル時間 | 3,160 ms |
| コンパイル使用メモリ | 114,576 KB |
| 実行使用メモリ | 44,568 KB |
| 平均クエリ数 | 52.15 |
| 最終ジャッジ日時 | 2024-07-17 00:23:45 |
| 合計ジャッジ時間 | 2,835 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
namespace No305{
public class Program{
public static void Main(string[] args){
var res = new int[10];
Func<int> output = () =>{
Console.WriteLine(string.Join("", res));
return int.Parse(Console.ReadLine().Split(' ')[0]);
};
for(var i = 0; i < 10; i++){
var x = output(); if(x == 10) return;
for(var j = 1; j < 10; j++){
res[i] = j;
var y = output(); if(y == 10) return;
if(y > x){
break;
}
if(y < x){
res[i] = 0;
break;
}
}
}
}
}
}
AreTrash