結果
問題 |
No.1882 Areas of Triangle
|
ユーザー |
![]() |
提出日時 | 2022-04-03 14:08:09 |
言語 | Java (openjdk 23) |
結果 |
TLE
|
実行時間 | - |
コード長 | 564 bytes |
コンパイル時間 | 3,052 ms |
コンパイル使用メモリ | 72,952 KB |
実行使用メモリ | 86,720 KB |
最終ジャッジ日時 | 2024-11-23 16:25:27 |
合計ジャッジ時間 | 23,527 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 WA * 1 |
other | AC * 15 WA * 6 TLE * 3 |
ソースコード
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); } }