Help me in solving WAITTIME problem

My issue

int t;
cin>>t;
while(t--){
    int x,y;
    cin>>x>>y;
    cout<<(x*7)-y<<endl;
}

my code is correct here still im not able to pass 1 test case but according to that failed test case, my code is correct
can anyone rectify if im wrong? or is it an issue?

My code

#include <iostream>
using namespace std;



int main() {
  	int t;
	cin>>t;
	while(t--){
	    int x,y;
	    cin>>x>>y;
	    cout<<(x*7)-y<<endl;
	}
	return 0;
}

Learning course: 500 difficulty rating
Problem Link: Waiting Time Practice Problem in - CodeChef

Hi, I see your code is correct and passing every test case in my idle!!
Try to run it again, if it is still giving incorrect you can try reporting that error.

1 Like