[gcj] Re: Forgone Solution: Program runs in IDE but getting runtime error in google

2020-03-27 Thread porker2008
A few comment: 1. Your solution would not work for hidden test because the input does not fit into 32-bit integer. You need to read the input as string or char[] 2. pow(10,i) returns result in floating points, which is not ideal because it could potentially lose precision for large integers. -

[gcj] Re: I get WA when I run this java code for Kickstart 2020 Round A Allocation problem

2020-03-27 Thread porker2008
I don't see major issue with your code The only issue is you need to have an extra space after the case number Instead of outputting *Case #1:2* you should output *Case #1:2 * -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe f

[gcj] I get WA when I run this java code for Kickstart 2020 Round A Allocation problem

2020-03-27 Thread Sona Raju
Hi everyone, I am new to Google Kickstart and this is my first ever attempt. My java code gives the correct answer when runs locally, but gives WA on the google platform. This is my code

[gcj] Forgone Solution: Program runs in IDE but getting runtime error in google

2020-03-27 Thread Adib Prottay
#include #include int digit(int A); void main() { int q, c, i, size, T; long p, N, A, B, x; scanf("%d", &T); for(q=0;qhttps://groups.google.com/d/msgid/google-code/9664b7f8-dcb0-487a-beee-3cb98da22300%40googlegroups.com.