結果
| 問題 |
No.1280 Beyond C
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-04 17:49:31 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 600 bytes |
| コンパイル時間 | 192 ms |
| コンパイル使用メモリ | 32,000 KB |
| 実行使用メモリ | 13,636 KB |
| 最終ジャッジ日時 | 2024-10-05 03:58:54 |
| 合計ジャッジ時間 | 11,849 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 15 TLE * 4 -- * 4 |
ソースコード
//1280
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
int main(){
int n;
int m;
int c;
int i;
int j,k;
int pd;
double pb;
int count1=0,count2=0;
int a[100000];
int b[100000];
printf("input n,m,c\n");
scanf("%d %d %d",&n,&m,&c);
printf("input a[i]\n");
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
printf("input b[i]\n");
for(i=0;i<m;i++){
scanf("%d",&b[i]);
}
for(j=0;j<n;j++){
for(k=0;k<m;k++){
pd=a[j]*b[k];
if(pd>c){
count1++;
}
else {
count2++;
}
}
}
pb=(double)count1/(count1+count2);
printf("%lf",pb);
system("pause");
}