結果
| 問題 |
No.133 カードゲーム
|
| コンテスト | |
| ユーザー |
Rp7rf
|
| 提出日時 | 2015-01-22 23:43:20 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 546 bytes |
| コンパイル時間 | 583 ms |
| コンパイル使用メモリ | 62,336 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-07 02:36:12 |
| 合計ジャッジ時間 | 1,533 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 19 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(void){
int n ;
cin>>n;
int w;
int c;
w = c = 0;
vector<int> a(n);
vector<int> b(n);
for(int i = 0 ; i < n ; i ++)
cin>>a[i];
int bmax = 0;
for(int i = 0 ; i < n ; i ++){
cin>>b[i];
bmax = max(bmax,b[i]);
}
for(int i = 0 ; i < n ; i ++){
// cout<<b[i];
for(int j = 0 ; j < n ; j ++){
// cout<<a[j];
if(bmax>a[j])w++;
c++;
}
cout<<endl;
}
cout<<1.0*w/c<<endl;
// cout<<w<<c<<endl;
}
Rp7rf