結果
問題 | No.99 ジャンピング駒 |
ユーザー | kuuso1 |
提出日時 | 2014-12-09 23:55:21 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 1,007 bytes |
コンパイル時間 | 2,285 ms |
コンパイル使用メモリ | 105,208 KB |
実行使用メモリ | 42,000 KB |
最終ジャッジ日時 | 2023-09-02 12:26:18 |
合計ジャッジ時間 | 3,788 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | WA | - |
testcase_05 | RE | - |
コンパイルメッセージ
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; using System.Collections.Generic; class TEST{ static void Main(){ Sol mySol =new Sol(); mySol.Solve(); } } class Sol{ public void Solve(){ Console.WriteLine(-1); int[] cnt=new int[2]; for(int i=0;i<N;i++)cnt[A[i]%2]++; //Console.WriteLine(Math.Abs(cnt[0]-cnt[1])); } int N; int[] A; public Sol(){ N=ri(); A=ria(); } static String rs(){return Console.ReadLine();} static int ri(){return int.Parse(Console.ReadLine());} static long rl(){return long.Parse(Console.ReadLine());} static double rd(){return double.Parse(Console.ReadLine());} static String[] rsa(){return Console.ReadLine().Split(' ');} static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));} static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));} static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));} }