shawon100 / RUET-OJ

RUET OJ is the 1st Open Source Online Judge Platform Of Bangladesh.
https://oj.redlimesolutions.ml/
MIT License
43 stars 18 forks source link

Wrong answer in java #1

Open Tusharh1512 opened 6 years ago

Tusharh1512 commented 6 years ago

hello! i'm using this project and i'm adding archieve problems. when i am solving that problem in c or c++ then only it accepts and shows verdict "Accepted" but when i code in java it shows wrong answer..but the output is correct..please help i'm stuck!!

Tusharh1512 commented 6 years ago

Actually i think this code is messing...when i looked in the database output is of size 2bytes but user output is of 3bytes in java

else if(strcmp($uo,$ao)==0) { //echo "Accepted"; $result="Accepted"; }

shawon100 commented 6 years ago

Have you renamed your class to Main?

Tusharh1512 commented 6 years ago

No..i named it main and output is correct see this.. java

Tusharh1512 commented 6 years ago

sorry to trouble you i've solved my problem, i think it saves as string in table so i conveted them to integer

Tusharh1512 commented 6 years ago

thank you for the response 👍

shawon100 commented 6 years ago

I tested my code and it worked. no need to convert it to integer. have you deployed it to local server or live server?

Tusharh1512 commented 6 years ago

local server

Tusharh1512 commented 6 years ago

i don't know why it is storing one byte extra in each code