Untitled
raw download clone
CPP
views 55
,
size 448 b
#include<iostream>
#include<fstream>
using namespace std;
ifstream fin("date.in");
int main()
{
    struct punct
    {
        float x,y;
    }p[101];
    int n,cnt;
    fin>>n;
    for(int i=1;i<=n;i++)
        fin>>p[i].x>>p[i].y;
        cnt=0;
    for(int i=1;i<=n;i++)
    if(p[i].y==0)
        cnt++;
    cout<<cnt<<" ";
    cnt=0;
    for(int i=1;i<=n;i++)
    if(p[i].x==0)
        cnt++;
    cout<<cnt<<" ";


}
close fullscreen
Login or Register to edit or fork this paste. It's free.