結果
| 問題 |
No.249 N言っちゃダメゲーム (2)
|
| コンテスト | |
| ユーザー |
No
|
| 提出日時 | 2018-01-28 04:49:57 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 542 bytes |
| コンパイル時間 | 908 ms |
| コンパイル使用メモリ | 105,196 KB |
| 実行使用メモリ | 26,140 KB |
| 最終ジャッジ日時 | 2024-12-29 08:17:45 |
| 合計ジャッジ時間 | 1,530 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / 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;
namespace y
{
class Program
{
static void Main(string[] args)
{
for (int i = 0; i < 1000; i++)
{
int cnt = 0;
var ss = Console.ReadLine().Split();
if (N(int.Parse(ss[0]), int.Parse(ss[1]))) cnt++;
Console.WriteLine(cnt);
}
}
static bool N(int n,int k)
{
int f = (n - 1) % (k + 1);
if (f == 0) return true;
else return false;
}
}
}
No