Submission #761679


Source Code Expand

Copy
#include<stdio.h>

int main(){
	int A, B, C;
	scanf("%d%d%d", &A, &B, &C);
	printf("%d\n", (A*(B + C) + B*C) * 2);
	return 0;
}

Submission Info

Submission Time
Task A - 高橋直体
User autumn_eel
Language C++14 (GCC 5.4.1)
Score 100
Code Size 134 Byte
Status
Exec Time 2 ms
Memory 128 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:5:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d%d", &A, &B, &C);
                             ^

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 example_0.txt, example_1.txt, example_2.txt, example_3.txt
All 100 / 100 example_0.txt, example_1.txt, example_2.txt, example_3.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt, random_5.txt, random_6.txt, random_7.txt, random_8.txt, random_9.txt
Case Name Status Exec Time Memory
example_0.txt 2 ms 128 KB
example_1.txt 2 ms 128 KB
example_2.txt 2 ms 128 KB
example_3.txt 2 ms 128 KB
random_0.txt 2 ms 128 KB
random_1.txt 2 ms 128 KB
random_2.txt 2 ms 128 KB
random_3.txt 2 ms 128 KB
random_4.txt 2 ms 128 KB
random_5.txt 2 ms 128 KB
random_6.txt 2 ms 128 KB
random_7.txt 2 ms 128 KB
random_8.txt 2 ms 128 KB
random_9.txt 2 ms 128 KB