結果

問題 No.1882 Areas of Triangle
ユーザー cologne
提出日時 2022-03-22 23:33:55
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 308 bytes
コンパイル時間 851 ms
コンパイル使用メモリ 110,336 KB
実行使用メモリ 13,636 KB
最終ジャッジ日時 2024-10-10 17:56:22
合計ジャッジ時間 4,448 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 -- * 4
other AC * 3 TLE * 1 -- * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <vector>
using namespace std;

int main()
{
	int N; long long K;
	scanf("%d%lld", &N, &K);
	vector<int> A(N); for(int&x: A) scanf("%d", &x);
	long long cnt = 0;
	for(int i=0; i<N; ++i)
		for(int j=0; j<N; ++j)
			if((long long)A[i]*A[j] >= 2*K)
				++cnt;
	printf("%lld\n", cnt);
}
0