結果

問題 No.1280 Beyond C
ユーザー 🍮かんプリン🍮かんプリン
提出日時 2020-11-06 21:41:59
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 577 bytes
コンパイル時間 3,125 ms
コンパイル使用メモリ 169,796 KB
実行使用メモリ 4,600 KB
最終ジャッジ日時 2023-09-29 18:29:10
合計ジャッジ時間 4,784 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 WA -
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 2 ms
4,380 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 82 ms
4,580 KB
testcase_19 AC 80 ms
4,556 KB
testcase_20 AC 84 ms
4,600 KB
testcase_21 AC 84 ms
4,596 KB
testcase_22 AC 88 ms
4,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/**
 *   @FileName	a.cpp
 *   @Author	kanpurin
 *   @Created	2020.11.06 21:40:14
**/

#include "bits/stdc++.h" 
using namespace std; 
typedef long long ll;

int main() {
    ll n,m,c;cin >> n >> m >> c;
    vector<ll> a(n),b(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    for (int i = 0; i < m; i++) {
        cin >> b[i];
    }
    sort(b.begin(), b.end());
    ll sum = 0;
    for (int i = 0; i < n; i++) {
        auto t = lower_bound(b.begin(), b.end(), c/a[i]+1);
        sum += b.end()-t;
    }
    printf("%.10f\n",(double)sum/n/m);
    return 0;
}
0