Submission #133239


Source Code Expand

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int r = sc.nextInt();
		int g = sc.nextInt();
		int b = sc.nextInt();
		
		System.out.println(num(r)+num(g)+num(b));
		
	}
	
	public static boolean guusu(int n){
		boolean returnVal = false;
		if(n%2 == 0){
			returnVal = true;
		}
		return returnVal;
	}
	
	public static int num(int n){
		int returnVal = 0;
		if(guusu(n)){
			returnVal = (n) * (n + 2) / 4 - n /2;
		}else{
			returnVal = (n) * (n + 2) / 4;
		}
		return returnVal;
	}

}

Submission Info

Submission Time
Task D - マーブル
User facehospitality
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 605 Byte
Status WA
Exec Time 605 ms
Memory 23224 KB

Judge Result

Set Name sub1 sub2 All
Score / Max Score 0 / 10 0 / 30 0 / 60
Status
AC × 5
WA × 24
AC × 13
WA × 44
AC × 13
WA × 69
Set Name Test Cases
sub1 sample_01_ABC.txt, test_ABC_01.txt, test_ABC_02.txt, test_ABC_03.txt, test_ABC_04.txt, test_ABC_05.txt, test_ABC_06.txt, test_ABC_07.txt, test_ABC_08.txt, test_ABC_09.txt, test_ABC_10.txt, test_ABC_11.txt, test_ABC_12.txt, test_ABC_13.txt, test_ABC_14.txt, test_ABC_15.txt, test_ABC_16.txt, test_ABC_17.txt, test_ABC_18.txt, test_ABC_19.txt, test_ABC_20.txt, test_ABC_21.txt, test_ABC_22.txt, test_ABC_23.txt, test_ABC_24.txt, test_ABC_25.txt, test_ABC_26.txt, test_ABC_27.txt, test_ABC_28.txt
sub2 sample_01_ABC.txt, sample_02_BC.txt, test_ABC_01.txt, test_ABC_02.txt, test_ABC_03.txt, test_ABC_04.txt, test_ABC_05.txt, test_ABC_06.txt, test_ABC_07.txt, test_ABC_08.txt, test_ABC_09.txt, test_ABC_10.txt, test_ABC_11.txt, test_ABC_12.txt, test_ABC_13.txt, test_ABC_14.txt, test_ABC_15.txt, test_ABC_16.txt, test_ABC_17.txt, test_ABC_18.txt, test_ABC_19.txt, test_ABC_20.txt, test_ABC_21.txt, test_ABC_22.txt, test_ABC_23.txt, test_ABC_24.txt, test_ABC_25.txt, test_ABC_26.txt, test_ABC_27.txt, test_ABC_28.txt, test_BC_29.txt, test_BC_30.txt, test_BC_31.txt, test_BC_32.txt, test_BC_33.txt, test_BC_34.txt, test_BC_35.txt, test_BC_36.txt, test_BC_37.txt, test_BC_38.txt, test_BC_39.txt, test_BC_40.txt, test_BC_41.txt, test_BC_42.txt, test_BC_43.txt, test_BC_44.txt, test_BC_45.txt, test_BC_46.txt, test_BC_47.txt, test_BC_48.txt, test_BC_49.txt, test_BC_50.txt, test_BC_51.txt, test_BC_52.txt, test_BC_53.txt, test_BC_54.txt, test_BC_55.txt
All test_ABC_01.txt, test_ABC_02.txt, test_ABC_03.txt, test_ABC_04.txt, test_ABC_05.txt, test_ABC_06.txt, test_ABC_07.txt, test_ABC_08.txt, test_ABC_09.txt, test_ABC_10.txt, test_ABC_11.txt, test_ABC_12.txt, test_ABC_13.txt, test_ABC_14.txt, test_ABC_15.txt, test_ABC_16.txt, test_ABC_17.txt, test_ABC_18.txt, test_ABC_19.txt, test_ABC_20.txt, test_ABC_21.txt, test_ABC_22.txt, test_ABC_23.txt, test_ABC_24.txt, test_ABC_25.txt, test_ABC_26.txt, test_ABC_27.txt, test_ABC_28.txt, test_BC_29.txt, test_BC_30.txt, test_BC_31.txt, test_BC_32.txt, test_BC_33.txt, test_BC_34.txt, test_BC_35.txt, test_BC_36.txt, test_BC_37.txt, test_BC_38.txt, test_BC_39.txt, test_BC_40.txt, test_BC_41.txt, test_BC_42.txt, test_BC_43.txt, test_BC_44.txt, test_BC_45.txt, test_BC_46.txt, test_BC_47.txt, test_BC_48.txt, test_BC_49.txt, test_BC_50.txt, test_BC_51.txt, test_BC_52.txt, test_BC_53.txt, test_BC_54.txt, test_BC_55.txt, test_C_56.txt, test_C_57.txt, test_C_58.txt, test_C_59.txt, test_C_60.txt, test_C_61.txt, test_C_62.txt, test_C_63.txt, test_C_64.txt, test_C_65.txt, test_C_66.txt, test_C_67.txt, test_C_68.txt, test_C_69.txt, test_C_70.txt, test_C_71.txt, test_C_72.txt, test_C_73.txt, test_C_74.txt, test_C_75.txt, test_C_76.txt, test_C_77.txt, test_C_78.txt, test_C_79.txt, test_C_80.txt, test_C_81.txt, test_C_82.txt
Case Name Status Exec Time Memory
sample_01_ABC.txt WA 513 ms 23220 KB
sample_02_BC.txt WA 477 ms 23088 KB
sample_03_C.txt WA 486 ms 23092 KB
test_ABC_01.txt WA 478 ms 23088 KB
test_ABC_02.txt AC 473 ms 23216 KB
test_ABC_03.txt WA 475 ms 23080 KB
test_ABC_04.txt WA 479 ms 23088 KB
test_ABC_05.txt AC 482 ms 23088 KB
test_ABC_06.txt AC 477 ms 23096 KB
test_ABC_07.txt WA 488 ms 23216 KB
test_ABC_08.txt WA 500 ms 23092 KB
test_ABC_09.txt WA 481 ms 23220 KB
test_ABC_10.txt WA 493 ms 23092 KB
test_ABC_11.txt WA 481 ms 23084 KB
test_ABC_12.txt WA 519 ms 23084 KB
test_ABC_13.txt WA 605 ms 23224 KB
test_ABC_14.txt WA 499 ms 23108 KB
test_ABC_15.txt WA 491 ms 23224 KB
test_ABC_16.txt WA 481 ms 23132 KB
test_ABC_17.txt WA 480 ms 23092 KB
test_ABC_18.txt WA 497 ms 23096 KB
test_ABC_19.txt WA 485 ms 23200 KB
test_ABC_20.txt AC 483 ms 23068 KB
test_ABC_21.txt AC 477 ms 22964 KB
test_ABC_22.txt WA 470 ms 23216 KB
test_ABC_23.txt WA 475 ms 23088 KB
test_ABC_24.txt WA 483 ms 23216 KB
test_ABC_25.txt WA 477 ms 23092 KB
test_ABC_26.txt WA 485 ms 23212 KB
test_ABC_27.txt WA 508 ms 23216 KB
test_ABC_28.txt WA 488 ms 23096 KB
test_BC_29.txt WA 489 ms 23220 KB
test_BC_30.txt AC 477 ms 23088 KB
test_BC_31.txt WA 482 ms 23096 KB
test_BC_32.txt WA 515 ms 23092 KB
test_BC_33.txt WA 485 ms 23220 KB
test_BC_34.txt WA 482 ms 23164 KB
test_BC_35.txt WA 510 ms 22964 KB
test_BC_36.txt WA 478 ms 23092 KB
test_BC_37.txt WA 485 ms 23084 KB
test_BC_38.txt WA 521 ms 23084 KB
test_BC_39.txt WA 478 ms 23092 KB
test_BC_40.txt WA 523 ms 23216 KB
test_BC_41.txt WA 508 ms 23088 KB
test_BC_42.txt WA 516 ms 22956 KB
test_BC_43.txt WA 513 ms 23060 KB
test_BC_44.txt WA 518 ms 23212 KB
test_BC_45.txt WA 511 ms 23084 KB
test_BC_46.txt WA 503 ms 23088 KB
test_BC_47.txt WA 508 ms 23092 KB
test_BC_48.txt WA 514 ms 23076 KB
test_BC_49.txt AC 512 ms 23208 KB
test_BC_50.txt AC 511 ms 23092 KB
test_BC_51.txt AC 501 ms 23220 KB
test_BC_52.txt AC 507 ms 23092 KB
test_BC_53.txt AC 524 ms 23212 KB
test_BC_54.txt AC 525 ms 23088 KB
test_BC_55.txt AC 513 ms 23212 KB
test_C_56.txt WA 540 ms 23092 KB
test_C_57.txt WA 529 ms 23088 KB
test_C_58.txt WA 507 ms 23208 KB
test_C_59.txt WA 506 ms 23092 KB
test_C_60.txt WA 518 ms 23216 KB
test_C_61.txt WA 515 ms 23188 KB
test_C_62.txt WA 506 ms 23220 KB
test_C_63.txt WA 505 ms 23084 KB
test_C_64.txt WA 517 ms 23084 KB
test_C_65.txt WA 507 ms 23096 KB
test_C_66.txt WA 512 ms 23092 KB
test_C_67.txt WA 503 ms 23096 KB
test_C_68.txt WA 510 ms 23088 KB
test_C_69.txt WA 482 ms 23084 KB
test_C_70.txt WA 481 ms 23220 KB
test_C_71.txt WA 476 ms 23088 KB
test_C_72.txt WA 482 ms 23216 KB
test_C_73.txt WA 483 ms 23216 KB
test_C_74.txt WA 482 ms 23096 KB
test_C_75.txt WA 483 ms 23092 KB
test_C_76.txt WA 486 ms 23088 KB
test_C_77.txt WA 498 ms 23088 KB
test_C_78.txt WA 484 ms 23084 KB
test_C_79.txt WA 475 ms 23096 KB
test_C_80.txt WA 480 ms 23096 KB
test_C_81.txt WA 483 ms 22968 KB
test_C_82.txt WA 480 ms 23092 KB