結果
| 問題 |
No.1882 Areas of Triangle
|
| ユーザー |
|
| 提出日時 | 2022-03-12 14:36:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 337 bytes |
| コンパイル時間 | 1,556 ms |
| コンパイル使用メモリ | 168,640 KB |
| 実行使用メモリ | 13,640 KB |
| 最終ジャッジ日時 | 2024-10-10 12:04:10 |
| 合計ジャッジ時間 | 5,148 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 -- * 4 |
| other | AC * 3 TLE * 1 -- * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void){
long long n,m; cin >> n >> m;
vector<long long> A(n); for(int i = 0; i < n; i++) cin >> A[i];
long long cnt = 0;
for(int i = 0; i < n; i++){
for(int j = 0; j < n; j++){
if(0.5*A[i]*A[j] >= m) cnt++;
}
}
cout << cnt;
}