結果
| 問題 |
No.1882 Areas of Triangle
|
| ユーザー |
|
| 提出日時 | 2022-03-22 23:36:42 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 412 bytes |
| コンパイル時間 | 348 ms |
| コンパイル使用メモリ | 111,616 KB |
| 実行使用メモリ | 13,636 KB |
| 最終ジャッジ日時 | 2024-10-10 17:59:19 |
| 合計ジャッジ時間 | 6,503 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 -- * 4 |
| other | AC * 3 TLE * 2 -- * 19 |
ソースコード
#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)
{
long long targ = (2*K+A[i]-1)/A[i];
if(targ > 1'000'000'000) continue;
int itarg = targ;
for (int j = 0; j < N; ++j)
if(A[j] >= itarg)
++cnt;
}
printf("%lld\n", cnt);
}