Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

I guess the logic and syntax are correct, but it shows the wrong answer, can someone guide please?

$
0
0

include<iostream>

using namespace std; int main(){ int n; cin>>n; int no[n][2]; int div[n]; for(int i=0; i<n; i++){="" for(int="" j="0;" j<2;="" j++){="" cin="">>no[i][j]; } } for(int i=0; i<n; i++){ for(int j=0; j<2; j++){ div[i]=(no[i][1])/(no[i][2]); } } for(int i=0; i<n; i++){ cout<<div[i]<<endl; } return 0; }


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>