Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int ap[13];
- int main()
- {
- int k,n,m,i,x,p=1,c=0,j;
- cin>>k>>n>>m;
- for(i=1;i<=n;i++)
- {
- for(j=1;j<=m;j++)
- {
- cin>>x;
- if(k==x&&ap[j]==0)
- {
- p=p*j;
- c++;
- ap[j]=1;
- }
- }
- }
- if(c==0)
- {
- cout<<"NU EXISTA";
- }
- else
- {
- cout<<p;
- }
- return 0;
- }
- 82
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement