Submission #133301


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();
		int rsum=0,gsum=0,bsum=0;
		
		if(R/2<50 && G/2<=50 && B/2<50){
			for(int r=R/2;r>=0;r--){
				rsum += r;
			}
			for(int r2=R/2+1;r2>=0;r2--){
				rsum += r2;
			}
			for(int g=G/2;g>=0;g--){
				gsum += g;
			}
			for(int g2=G/2+1;g2>=0;g2--){
				gsum += g2;
			}
			for(int b=B/2;b>=0;b--){
				bsum += b;
			}
			for(int b2=B/2+1;b2>=0;b2--){
				bsum += b2;
			}
		}
		System.out.println(rsum+gsum+bsum);
	}
}

Submission Info

Submission Time
Task D - マーブル
User muratomo40424
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 651 Byte
Status WA
Exec Time 394 ms
Memory 17328 KiB

Judge Result

Set Name sub1 sub2 All
Score / Max Score 0 / 10 0 / 30 0 / 60
Status
WA × 29
WA × 57
WA × 82
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 381 ms 17200 KiB
sample_02_BC.txt WA 336 ms 17148 KiB
sample_03_C.txt WA 361 ms 17184 KiB
test_ABC_01.txt WA 342 ms 17180 KiB
test_ABC_02.txt WA 350 ms 17272 KiB
test_ABC_03.txt WA 348 ms 17164 KiB
test_ABC_04.txt WA 341 ms 17312 KiB
test_ABC_05.txt WA 344 ms 17136 KiB
test_ABC_06.txt WA 337 ms 17180 KiB
test_ABC_07.txt WA 342 ms 17180 KiB
test_ABC_08.txt WA 346 ms 17180 KiB
test_ABC_09.txt WA 336 ms 17176 KiB
test_ABC_10.txt WA 336 ms 17136 KiB
test_ABC_11.txt WA 348 ms 17188 KiB
test_ABC_12.txt WA 345 ms 17180 KiB
test_ABC_13.txt WA 348 ms 17292 KiB
test_ABC_14.txt WA 366 ms 17168 KiB
test_ABC_15.txt WA 347 ms 17180 KiB
test_ABC_16.txt WA 343 ms 17164 KiB
test_ABC_17.txt WA 343 ms 17172 KiB
test_ABC_18.txt WA 350 ms 17144 KiB
test_ABC_19.txt WA 356 ms 17180 KiB
test_ABC_20.txt WA 361 ms 17172 KiB
test_ABC_21.txt WA 338 ms 17052 KiB
test_ABC_22.txt WA 346 ms 17172 KiB
test_ABC_23.txt WA 347 ms 17180 KiB
test_ABC_24.txt WA 331 ms 17164 KiB
test_ABC_25.txt WA 325 ms 17164 KiB
test_ABC_26.txt WA 327 ms 17148 KiB
test_ABC_27.txt WA 344 ms 17300 KiB
test_ABC_28.txt WA 350 ms 17184 KiB
test_BC_29.txt WA 349 ms 17144 KiB
test_BC_30.txt WA 343 ms 17228 KiB
test_BC_31.txt WA 341 ms 17164 KiB
test_BC_32.txt WA 347 ms 17296 KiB
test_BC_33.txt WA 337 ms 17168 KiB
test_BC_34.txt WA 328 ms 17180 KiB
test_BC_35.txt WA 325 ms 17032 KiB
test_BC_36.txt WA 342 ms 17176 KiB
test_BC_37.txt WA 353 ms 17144 KiB
test_BC_38.txt WA 347 ms 17164 KiB
test_BC_39.txt WA 364 ms 17168 KiB
test_BC_40.txt WA 358 ms 17164 KiB
test_BC_41.txt WA 355 ms 17164 KiB
test_BC_42.txt WA 346 ms 17164 KiB
test_BC_43.txt WA 344 ms 17180 KiB
test_BC_44.txt WA 352 ms 17180 KiB
test_BC_45.txt WA 350 ms 17128 KiB
test_BC_46.txt WA 354 ms 17292 KiB
test_BC_47.txt WA 331 ms 17044 KiB
test_BC_48.txt WA 351 ms 17160 KiB
test_BC_49.txt WA 329 ms 17328 KiB
test_BC_50.txt WA 326 ms 17280 KiB
test_BC_51.txt WA 326 ms 17200 KiB
test_BC_52.txt WA 351 ms 17184 KiB
test_BC_53.txt WA 350 ms 17056 KiB
test_BC_54.txt WA 354 ms 17284 KiB
test_BC_55.txt WA 338 ms 17172 KiB
test_C_56.txt WA 357 ms 17180 KiB
test_C_57.txt WA 346 ms 17180 KiB
test_C_58.txt WA 351 ms 17136 KiB
test_C_59.txt WA 377 ms 17184 KiB
test_C_60.txt WA 354 ms 17184 KiB
test_C_61.txt WA 347 ms 17308 KiB
test_C_62.txt WA 360 ms 17280 KiB
test_C_63.txt WA 362 ms 17144 KiB
test_C_64.txt WA 370 ms 17184 KiB
test_C_65.txt WA 353 ms 17184 KiB
test_C_66.txt WA 331 ms 17160 KiB
test_C_67.txt WA 325 ms 17180 KiB
test_C_68.txt WA 349 ms 17140 KiB
test_C_69.txt WA 354 ms 17284 KiB
test_C_70.txt WA 342 ms 17292 KiB
test_C_71.txt WA 334 ms 17176 KiB
test_C_72.txt WA 352 ms 17156 KiB
test_C_73.txt WA 358 ms 17176 KiB
test_C_74.txt WA 353 ms 17176 KiB
test_C_75.txt WA 394 ms 17144 KiB
test_C_76.txt WA 355 ms 17148 KiB
test_C_77.txt WA 352 ms 17180 KiB
test_C_78.txt WA 373 ms 17148 KiB
test_C_79.txt WA 355 ms 17260 KiB
test_C_80.txt WA 361 ms 17168 KiB
test_C_81.txt WA 357 ms 17176 KiB
test_C_82.txt WA 339 ms 17300 KiB