結果

問題 No.1280 Beyond C
ユーザー chacoder1chacoder1
提出日時 2020-12-07 23:13:55
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 377 bytes
コンパイル時間 2,007 ms
コンパイル使用メモリ 202,060 KB
実行使用メモリ 8,184 KB
最終ジャッジ日時 2023-10-17 16:42:15
合計ジャッジ時間 6,715 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  long long N,M,C;
  cin>>N>>M>>C;
  int A[N];
  int B[M];
  for(int i=0;i<N;i++){
    cin>>A[i];
  }
  for(int i=0;i<M;i++){
    cin>>B[i];
  }
  int cnt=0;
  for(int i=0;i<N;i++){
    for(int j=0;j<M;j++){
      if(A[i]*B[j]>C) cnt++;
    }
  }
  cout<<setprecision(10)<<(double)cnt/(N*M)<<endl;
  
  return 0;
}


 
0