|
@@ -54,7 +54,7 @@ class OnlineJudgeAndCulScoreCallBack implements AsyncTaskCallBack {
|
|
|
*/
|
|
|
private double culScore(int real,int total) {
|
|
|
if(total == 0) return 0;
|
|
|
- BigDecimal bg = new BigDecimal(real/1.0*total);
|
|
|
+ BigDecimal bg = new BigDecimal(100*real/(1.0*total));
|
|
|
return bg.setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
}
|
|
|
}
|