結果

問題 No.1280 Beyond C
ユーザー 👑 platinumplatinum
提出日時 2020-05-18 19:03:22
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 388 bytes
コンパイル時間 1,603 ms
コンパイル使用メモリ 170,060 KB
実行使用メモリ 13,756 KB
最終ジャッジ日時 2024-05-06 20:12:02
合計ジャッジ時間 5,466 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
13,756 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,944 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 1 ms
6,944 KB
testcase_06 AC 2 ms
6,940 KB
testcase_07 AC 2 ms
6,944 KB
testcase_08 AC 2 ms
6,944 KB
testcase_09 AC 2 ms
6,944 KB
testcase_10 AC 2 ms
6,944 KB
testcase_11 AC 3 ms
6,940 KB
testcase_12 AC 2 ms
6,944 KB
testcase_13 AC 3 ms
6,944 KB
testcase_14 AC 3 ms
6,944 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(int)(n); i++)

using namespace std;
using LL = long long;

int main(){
	LL N, M;
	cin >> N >> M;
	LL C;
	cin >> C;
	vector<LL> A(N), B(M);
	rep(i,N) cin >> A[i];
	rep(i,M) cin >> B[i];
	double ans=0;
	rep(i,N){
		rep(j,M) if(A[i]*B[j]>C) ans++;
	}
	cout << setprecision(10) << ans/(N*M) << endl;

	return 0;
}
0