結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2017-10-17 15:24:16 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 463 bytes |
コンパイル時間 | 1,858 ms |
コンパイル使用メモリ | 104,936 KB |
実行使用メモリ | 42,624 KB |
最終ジャッジ日時 | 2024-11-17 21:54:20 |
合計ジャッジ時間 | 80,531 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 TLE * 11 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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); } }