結果
問題 |
No.1882 Areas of Triangle
|
ユーザー |
|
提出日時 | 2022-03-22 23:35:10 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 343 bytes |
コンパイル時間 | 2,511 ms |
コンパイル使用メモリ | 109,952 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-10 17:58:18 |
合計ジャッジ時間 | 3,919 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 -- * 4 |
other | AC * 3 TLE * 1 -- * 20 |
ソースコード
#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[j] >= (2 * K + A[i] - 1) / A[i]) ++cnt; printf("%lld\n", cnt); }