×

# Can You Figure this Out?

 0 My solution : https://www.codechef.com/viewsolution/21674491 Can you please point out the error in my solution; I have used a very basic logic mostly you'll understand it ! THANKS . asked 22 Nov '18, 11:33 19●5 accept rate: 0% 1 your logic is perfect only one mistake is there you are taking t that is number of testcases from user which is not required for this question see sample test case! (22 Nov '18, 12:50) https://ide.geeksforgeeks.org/tpOf4vgUuZ (22 Nov '18, 12:52)

 0 So simple, You are taking three(3) inputs where as input specifies only two(2). Why are you taking T number of test cases... Always read question twice before attempting it. Dont blindly post your doubts. this code will work:-  #include using namespace std; int main() {int t; int a,b; cin>>a>>b; int n=a-b; if((n%10)!=9){cout<
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×1,901
×21
×20

question asked: 22 Nov '18, 11:33

question was seen: 77 times

last updated: 22 Nov '18, 17:45