結果
| 問題 |
No.249 N言っちゃダメゲーム (2)
|
| コンテスト | |
| ユーザー |
nanophoto12
|
| 提出日時 | 2015-12-19 14:09:21 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 468 bytes |
| コンパイル時間 | 2,181 ms |
| コンパイル使用メモリ | 112,312 KB |
| 実行使用メモリ | 28,984 KB |
| 最終ジャッジ日時 | 2024-09-16 16:04:27 |
| 合計ジャッジ時間 | 2,902 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 RE * 2 |
コンパイルメッセージ
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;
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 ());
}
}
}
nanophoto12