Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
319672 | 钱凯 | 【C5-9】开锁 | C++ | 解答错误 | 0 | 1 MS | 248 KB | 356 | 2025-04-28 14:10:26 |
#include <bits/stdc++.h> using namespace std; struct Ks{ int x,y; }a[101],b[101]; int main ( ){ int n,k,s; cin>>n>>k; for(int i=1;i<=n;i++) cin>>a[i].x>>a[i].y; for(int i=1;i<=k;i++) cin>>b[i].x>>b[i].y; for(int i=1;i<=n;i++){ s=0; if(a[i].x*b[i].y==a[i].y*a[i].y){ s++; cout<<s<<endl; } } return 0;//633 }