結果

問題 No.182 新規性の虜
ユーザー chankou0920chankou0920
提出日時 2017-10-17 15:24:16
言語 C#(csc)
(csc 3.9.0)
結果
TLE  
実行時間 -
コード長 463 bytes
コンパイル時間 4,264 ms
コンパイル使用メモリ 108,452 KB
実行使用メモリ 25,880 KB
最終ジャッジ日時 2024-04-29 00:17:39
合計ジャッジ時間 8,212 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
25,880 KB
testcase_01 AC 25 ms
23,728 KB
testcase_02 AC 25 ms
23,856 KB
testcase_03 AC 25 ms
21,808 KB
testcase_04 AC 24 ms
24,108 KB
testcase_05 AC 26 ms
25,880 KB
testcase_06 AC 25 ms
23,700 KB
testcase_07 AC 25 ms
23,772 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
evil01.txt -- -
evil02.txt -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
	public static void Main(string[] args) {
		Console.ReadLine(); // n
		string[] s = Console.ReadLine().Split(' ');
		
		int count = 0;
		for (int i = 0; i < s.Length; i++) {
			bool isSame = false;
			for (int j = 0; j < s.Length; j++) {
				if (i == j) {
					continue;
				} else if (s[i].Equals(s[j])) {
					isSame = true;
					break;
				}
			}
			if (!isSame) {
				count++;
			}
		}
		
		Console.WriteLine(count);
	}
}
0