I made the following changes and got the right answer.
import java.io.*;
import java.lang.*;
import java.util.Scanner;
import java.util.Arrays;
class A
{
public static void main(String args[])throws IOException
{
Scanner input = new Scanner(System.in);
int t =
Thanku so much everyone especially ,Jashanpreet Singh and Xiongqi Zhang.
Finally got the correct answers for both small and large inputs.
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving
Thanku so much again for taking the time and effort.
I think to correct my solution I just need to remove the break statement in the
else condition to continue checking the next yogurt till full.
I did do that and am still getting incorrect answer.
import java.io.*;
import java.lang.*;
import
I know.
Sorry I forgot to mention the question.
This is KIckstart 2018 Round E.
Question A.Yogurt
https://code.google.com/codejam/contest/4394486/dashboard
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and
import java.io.*;
import java.lang.*;
import java.util.Scanner;
import java.util.Arrays;
class A
{
public static void main(String args[])throws IOException
{
Scanner input = new Scanner(System.in);
int t = input.nextInt();
int x;
for(x=1;x<=t;x++){
You are not checking for "WRONG_ANSWER" condition
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to google-code+unsubscr...@googlegroups.com.
To post to this
import java.util.*;
//codejam 2018 practice round Question C:Speed 2
class Horse{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int t=0;
while(sc.hasNextInt()) {
t=sc.nextInt();
break;
}
Dear Friends,
Is it possible to have read/write access
to specific files and directories in the repository
using CVS for various users?I have a requirement that
certain directories should be writable by user A but
user A should have only read access for remaining
directories in the
Hi All,
Does cvs support symbolic links(unix) ???
Regards,
Anamika
__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
___
Info-cvs mailing list
[EMAIL
Dear friends,
I am getting certain error messages when i
commit files.
The error messages are as follows:-
Value too large for defined data
And sometimes the above error message is
accompanied with
Permission denied for readers.
Any idea what is the problem?
Dear Friends,
If a directory needs to be removed from the
repository, what is the procedure to do it?
Is it safe to directly remove the directory from the
repository, if we know that it will be no longer reqd
in future. If no, what all problems it can create if
we directly delete the
Dear Friends,
What all things we should keep in mind
while using binary files in cvs?
1 if a file has been added in the repository
directory
without using import -kb option. How can we stop the
keyword subsitution and canonical endings in these
files?
2 if we have imported a binary
12 matches
Mail list logo