結果
問題 | No.2547 Did you enjoy Chofu Festival? |
ユーザー |
|
提出日時 | 2024-02-03 22:28:07 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 145 ms / 2,000 ms |
コード長 | 585 bytes |
コンパイル時間 | 2,057 ms |
コンパイル使用メモリ | 75,400 KB |
実行使用メモリ | 54,280 KB |
最終ジャッジ日時 | 2024-09-28 11:03:47 |
合計ジャッジ時間 | 4,320 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void log(Object obj) { System.out.println(obj.toString()); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Integer> a = new ArrayList<>(); ArrayList<Integer> b = new ArrayList<>(); for(int i=0;i<n;i++) a.add(sc.nextInt()); for(int i=0;i<n;i++) b.add(sc.nextInt()); int count = 0; for(int i=0;i<n;i++) { if(a.get(i) <= b.get(i)) { count++; } } log(count); } }