結果
| 問題 |
No.355 数当てゲーム(2)
|
| コンテスト | |
| ユーザー |
AreTrash
|
| 提出日時 | 2016-09-05 10:56:36 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 647 bytes |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 114,632 KB |
| 実行使用メモリ | 44,728 KB |
| 平均クエリ数 | 101.00 |
| 最終ジャッジ日時 | 2024-07-16 11:03:59 |
| 合計ジャッジ時間 | 14,206 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 52 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
namespace No355{
public class Program{
public static void Main(string[] args){
Func<string, int[]> output = s =>{
if(s.Distinct().Count() != s.Length) return new [] {-1, -1};
Console.WriteLine(string.Join(" ", s.ToCharArray()));
return Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
};
var random = new Random();
while(true){
var i = random.Next(10000);
var x = output(i.ToString("0000"));
if(x[0] == 4) return;
}
}
}
}
AreTrash