×

# Why my command prompt is showing correct answer but here its showing "wrong answer" ?

 1 the link to the code is https://www.codechef.com/problems/RAINBOWA this is my code, please check and help me out import java.io.*; import java.lang.*; import java.util.*; class universe { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int T=Integer.parseInt(br.readLine()); for(int j=0;j

 1 Take a look at this test case: 1 15 1 2 3 4 5 6 7 999 7 6 5 4 3 2 1  answered 21 Aug '17, 11:59 566●5 accept rate: 25% thanks, got it :) (21 Aug '17, 12:02)
 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:

×552
×170
×116
×75
×25

question asked: 21 Aug '17, 11:56

question was seen: 141 times

last updated: 21 Aug '17, 14:02