結果

問題 No.249 N言っちゃダメゲーム (2)
ユーザー nanophoto12nanophoto12
提出日時 2015-12-19 14:09:21
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 468 bytes
コンパイル時間 2,614 ms
コンパイル使用メモリ 106,492 KB
実行使用メモリ 23,980 KB
最終ジャッジ日時 2023-10-14 22:25:35
合計ジャッジ時間 3,785 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Generic;
using System.Linq;

namespace No249
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			int winCount = 0;
			for (int i = 0; i < 1000; i++) {
				var line = Console.ReadLine ().Split (' ').Select (v => Convert.ToInt32 (v)).ToArray();
				var n = line [0];
				var k = line [1];
				if (n % (k + 1) == 1) {
				} else {
					winCount++;
				}
			}
			Console.WriteLine (winCount.ToString ());
		}
	}
}
0