結果
問題 | No.182 新規性の虜 |
ユーザー | ちよちゃん |
提出日時 | 2016-05-31 16:32:37 |
言語 | Java21 (openjdk 21) |
結果 |
TLE
|
実行時間 | - |
コード長 | 720 bytes |
コンパイル時間 | 3,529 ms |
コンパイル使用メモリ | 74,788 KB |
実行使用メモリ | 63,140 KB |
最終ジャッジ日時 | 2024-04-16 21:15:14 |
合計ジャッジ時間 | 16,302 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 133 ms
41,828 KB |
testcase_01 | AC | 130 ms
41,068 KB |
testcase_02 | AC | 124 ms
39,888 KB |
testcase_03 | AC | 137 ms
41,256 KB |
testcase_04 | AC | 121 ms
40,212 KB |
testcase_05 | AC | 138 ms
41,432 KB |
testcase_06 | AC | 135 ms
41,624 KB |
testcase_07 | AC | 136 ms
41,212 KB |
testcase_08 | AC | 4,705 ms
57,956 KB |
testcase_09 | TLE | - |
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 | -- | - |
ソースコード
package yukicoder; import java.util.Scanner; public class Yuki182 { public static void main(String[] args ) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int a_array[] = new int[n]; for (int i = 0; i < n ; i++ ) { a_array[i] = scan.nextInt(); } scan.close(); System.out.println(ansArray(a_array)); } private static int ansArray(int[] arr) { int ans_array[] = new int[arr.length]; for(int i = 0; i < arr.length; i++ ){ for(int j = 0; j < arr.length; j++ ){ if(arr[i] == arr[j]){ ans_array[i]++; } } } int ans = 0; for(int i = 0; i < ans_array.length; i++ ){ if(ans_array[i] == 1) { ans++; } } return ans; } }