結果
問題 | No.1882 Areas of Triangle |
ユーザー | キョウチク |
提出日時 | 2022-04-03 14:08:09 |
言語 | Java21 (openjdk 21) |
結果 |
TLE
|
実行時間 | - |
コード長 | 564 bytes |
コンパイル時間 | 3,444 ms |
コンパイル使用メモリ | 71,000 KB |
実行使用メモリ | 49,192 KB |
最終ジャッジ日時 | 2023-08-15 10:06:24 |
合計ジャッジ時間 | 8,681 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 45 ms
49,184 KB |
testcase_01 | AC | 43 ms
49,192 KB |
testcase_02 | AC | 43 ms
49,068 KB |
testcase_03 | AC | 44 ms
49,064 KB |
testcase_04 | TLE | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
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 | -- | - |
testcase_28 | -- | - |
ソースコード
import java.io.*; public class test2{ public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String[] line=br.readLine().split(" "); int N=Integer.parseInt(line[0]); long K=Long.parseLong(line[1]); line=br.readLine().split(" "); int[] A=new int[N]; for(int i=0;i<N;i++) A[i]=Integer.parseInt(line[i]); int ansN=0; for(int i=0;i<N;i++){ for(int j=0;j<N;j++){ if(A[i]*A[j]>=K*2) ansN++; } } System.out.println(ansN); } }