結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2018-07-25 19:32:52 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 5,000 ms |
| + 727µs | |
| コード長 | 955 bytes |
| 記録 | |
| コンパイル時間 | 1,577 ms |
| コンパイル使用メモリ | 108,032 KB |
| 実行使用メモリ | 20,096 KB |
| 最終ジャッジ日時 | 2026-07-30 18:20:28 |
| 合計ジャッジ時間 | 1,963 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
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.Generic;
using System.Linq;
using System.Text;
namespace YukiCoder
{
class Program
{
static void Main(string[] args)
{
int N = int.Parse(Console.ReadLine());
bool[] bN = new bool[10];
for (int i = 0; i < N; i++)
{
bool[] bY = new bool[10];
var vs = Console.ReadLine().Split().ToList();
var vn = vs.Take(4).Select(int.Parse).ToList();
if (vs[4] == "YES")
{
vn.ForEach(n => bY[n] = true);
for (int j = 0; j < 10; j++)
{
if (!bY[j]) bN[j] = true;
}
}
else vn.ForEach(n => bN[n] = true);
}
for (int i = 0; i < 10; i++) if (!bN[i]) Console.WriteLine(i);
//Console.ReadLine();
}
}
}
_matumo_