結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2015-08-09 21:49:59 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 514 bytes |
コンパイル時間 | 3,554 ms |
コンパイル使用メモリ | 75,740 KB |
実行使用メモリ | 54,732 KB |
最終ジャッジ日時 | 2024-07-18 06:19:12 |
合計ジャッジ時間 | 7,562 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 27 |
ソースコード
import java.util.*; public class Novelty{ public static void main(String... args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); System.out.println(); } public static int counter(int n, Scanner scan){ ArrayList<Integer> novelty = new ArrayList<Integer>(); ArrayList<Integer> no = new ArrayList<Integer>(); for(int i = 0; i < n; i++){ int now = scan.nextInt(); if(novelty.indexOf(now) == -1){ novelty.add(now); }else{ continue; } } return novelty.size(); } }