結果
| 問題 |
No.1280 Beyond C
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-02-05 00:21:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 89 ms / 2,000 ms |
| コード長 | 591 bytes |
| コンパイル時間 | 873 ms |
| コンパイル使用メモリ | 81,196 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-11 13:13:00 |
| 合計ジャッジ時間 | 2,087 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
int main(){
long long n,m;
long long c;cin>>n>>m>>c;
vector<long long> A(n),B(m);
for(int i = 0;n > i; i++){
cin>>A[i];
}
for(int i = 0; m > i; i++){
cin>>B[i];
}
sort(B.begin(),B.end());
long long ans = 0;
for(int i = 0; n > i; i++){
ans += B.end()-lower_bound(B.begin(),B.end(),(c+A[i])/A[i]);
// cout << (c+A[i]-1)/A[i] << " " << ans << endl;
}
cout << fixed << setprecision(10) << (double)ans/(n*m) << endl;
}