結果
問題 | No.182 新規性の虜 |
ユーザー | funakoshi |
提出日時 | 2019-06-26 10:27:50 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 924 bytes |
コンパイル時間 | 2,257 ms |
コンパイル使用メモリ | 101,752 KB |
実行使用メモリ | 29,372 KB |
最終ジャッジ日時 | 2023-09-06 15:21:33 |
合計ジャッジ時間 | 5,335 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
20,744 KB |
testcase_01 | AC | 57 ms
20,720 KB |
testcase_02 | AC | 57 ms
20,724 KB |
testcase_03 | AC | 58 ms
20,752 KB |
testcase_04 | AC | 58 ms
20,648 KB |
testcase_05 | AC | 58 ms
22,772 KB |
testcase_06 | AC | 58 ms
22,776 KB |
testcase_07 | AC | 57 ms
20,712 KB |
testcase_08 | AC | 84 ms
25,520 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 56 ms
20,768 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 55 ms
20,612 KB |
testcase_24 | AC | 89 ms
26,968 KB |
testcase_25 | AC | 82 ms
25,520 KB |
testcase_26 | AC | 65 ms
21,616 KB |
testcase_27 | AC | 54 ms
18,596 KB |
evil01.txt | AC | 95 ms
28,488 KB |
evil02.txt | AC | 95 ms
30,516 KB |
コンパイルメッセージ
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; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string findlist = Console.ReadLine(); string[] list = findlist.Split(' '); int[] num = new int[list.Length]; int Newcnt = int.Parse(input); for (int i=0;i<num.Length;i++) { num[i] = int.Parse(list[i]); } for(int i=0;i<num.Length-1;i++) { if(num[i]==num[i+1]) { Newcnt-=2; i++; continue; } } Console.WriteLine(Newcnt); } } }