Language: C


#include <stdio.h>
#include <math.h>

#define gc() getchar_unlocked()
int in()
{
	int n = 0, c = gc();
	do n = 10*n + (c & 0xf), c = gc();
	while (c >= '0');
	return n;
}

int x[102], y[102];

int main()
{
	int n, i, t, t2;
	int d, d1, d2;
	long long d3;
	
	n = in();
	for (i = 0; i < n; i++) x[i] = in();
	for (i = 0; i < n; i++) y[i] = in();
	d = 0, d1 = 0, d2 = 0, d3 = 0;
	for (i = 0; i < n; i++) {
		t = x[i] - y[i];
		if (t < 0) t = -t;
		if (t > d) d = t;
		d1 += t;
		t2 = t*t, d2 += t2;
		d3 += t2*t;
	}
	printf("%d\n", d1);
	printf("%.8lf\n", sqrt((double)d2));
	printf("%.8lf\n", pow((double)d3, 1.0/3));
	printf("%d\n", d);
	return 0;
}



Compile Error Logs: 

 

ステータス 
Judge: 14/14 C CPU: 00:00 sec Memory: 2100 KB Length: 696 B 2018-04-29 06:15 
テストケースの判定結果 
Case # Verdict CPU Time Memory In Out Case Name 

Case #1 : Accepted 00:00 2028 14 44 00_sample_00.in 
Case #2 : Accepted 00:00 1972 10 44 00_sample_01.in 
Case #3 : Accepted 00:00 2076 22 45 01_small_00.in 
Case #4 : Accepted 00:00 2040 34 46 01_small_01.in 
Case #5 : Accepted 00:00 1916 53 55 01_small_02.in 
Case #6 : Accepted 00:00 2024 54 51 01_small_03.in 
Case #7 : Accepted 00:00 1916 6 44 02_corner_00.in 
Case #8 : Accepted 00:00 2020 9 56 02_corner_01.in 
Case #9 : Accepted 00:00 2040 22 44 02_corner_02.in 
Case #10 : Accepted 00:00 2100 14 44 02_corner_03.in 
Case #11 : Accepted 00:00 2028 404 44 03_large_00.in 
Case #12 : Accepted 00:00 2044 404 48 03_large_01.in 
Case #13 : Accepted 00:00 2020 578 52 03_large_02.in 
Case #14 : Accepted 00:00 2020 784 56 03_large_03.in 



 < prev |  /   | next >      

 

Judge Input #  (  | )  Judge Output #  (  | ) 


  

 



Compiler output:
main.c:43:1: error: unknown type name 'Compile'
   43 | Compile Error Logs:
      | ^~~~~~~
main.c:43:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   43 | Compile Error Logs:
      |               ^~~~
main.c:50:6: error: stray '#' in program
   50 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
main.c:52:6: error: stray '#' in program
   52 | Case #1 : Accepted 00:00 2028 14 44 00_sample_00.in
      |      ^
main.c:52:37: error: invalid suffix "_sample_00.in" on integer constant
   52 | Case #1 : Accepted 00:00 2028 14 44 00_sample_00.in
      |                                     ^~~~~~~~~~~~~~~
main.c:53:6: error: stray '#' in program
   53 | Case #2 : Accepted 00:00 1972 10 44 00_sample_01.in
      |      ^
main.c:53:37: error: invalid suffix "_sample_01.in" on integer constant
   53 | Case #2 : Accepted 00:00 1972 10 44 00_sample_01.in
      |                                     ^~~~~~~~~~~~~~~
main.c:54:6: error: stray '#' in program
   54 | Case #3 : Accepted 00:00 2076 22 45 01_small_00.in
      |      ^
main.c:54:37: error: invalid suffix "_small_00.in" on integer constant
   54 | Case #3 : Accepted 00:00 2076 22 45 01_small_00.in
      |                                     ^~~~~~~~~~~~~~
main.c:55:6: error: stray '#' in program
   55 | Case #4 : Accepted 00:00 2040 34 46 01_small_01.in
      |      ^
main.c:55:37: error: invalid suffix "_small_01.in" on integer constant
   55 | Case #4 : Accepted 00:00 2040 34 46 01_small_01.in
      |                                     ^~~~~~~~~~~~~~
main.c:56:6: error: stray '#' in program
   56 | Case #5 : Accepted 00:00 1916 53 55 01_small_02.in
      |      ^
main.c:56:37: error: invalid suffix "_small_02.in" on integer constant
   56 | Case #5 : Accepted 00:00 1916 53 55 01_small_02.in
      |                                     ^~~~~~~~~~~~~~
main.c:57:6: error: stray '#' in program
   57 | Case #6 : Accepted 00:00 2024 54 51 01_small_03.in
      |      ^
main.c:57:37: error: invalid suffix "_small_03.in" on integer constant
   57 | Case #6 : Accepted 00:00 2024 54 51 01_small_03.in
      |                                     ^~~~~~~~~~~~~~
main.c:58:6: error: stray '#' in program
   58 | Case #7 : Accepted 00:00 1916 6 44 02_corner_00.in
      |      ^
main.c:58:36: error: invalid suffix "_corner_00.in" on integer constant
   58 | Case #7 : Accepted 00:00 1916 6 44 02_corner_00.in
      |                                    ^~~~~~~~~~~~~~~
main.c:59:6: error: stray '#' in program
   59 | Case #8 : Accepted 00:00 2020 9 56 02_corner_01.in
      |      ^
main.c:59:36: error: invalid suffix "_corner_01.in" on integer constant
   59 | Case #8 : Accepted 00:00 2020 9 56 02_corner_01.in
      |                                    ^~~~~~~~~~~~~~~
main.c:60:6: error: stray '#' in program
   60 | Case #9 : Accepted 00:00 2040 22 44 02_corner_02.in
      |      ^
main.c:60:37: error: invalid suffix "_corner_02.in" on integer constant
   60 | Case #9 : Accepted 00:00 2040 22 44 02_corner_02.in
      |                                     ^~~~~~~~~~~~~~~
main.c:61:6: error: stray '#' in program
   61 | Case #10 : Accepted 00:00 2100 14 44 02_corner_03.in
      |      ^
main.c:61:38: error: invalid suffix "_corner_03.in" on integer constant
   61 | Case #10 : Accepted 00:00 2100 14 44 02_corner_03.in
      |                                      ^~~~~~~~~~~~~~~
main.c:62:6: error: stray '#' in program
   62 | Case #11 : Accepted 00:00 2028 404 44 03_large_00.in
      |      ^
main.c:62:39: error: invalid suffix "_large_00.in" on integer constant
   62 | Case #11 : Accepted 00:00 2028 404 44 03_large_00.in
      |                                       ^~~~~~~~~~~~~~
main.c:63:6: error: stray '#' in program
   63 | Case #12 : Accepted 00:00 2044 404 48 03_large_01.in
      |      ^
main.c:63:39: error: invalid suffix "_large_01.in" on integer constant
   63 | Case #12 : Accepted 00:00 2044 404 48 03_large_01.in
      |                                       ^~~~~~~~~~~~~~
main.c:64:6: error: stray '#' in program
   64 | Case #13 : Accepted 00:00 2020 578 52 03_large_02.in
      |      ^
main.c:64:39: error: invalid suffix "_large_02.in" on integer constant
   64 | Case #13 : Accepted 00:00 2020 578 52 03_large_02.in
      |                                       ^~~~~~~~~~~~~~
main.c:65:6: error: stray '#' in program
   65 | Case #14 : Accepted 00:00 2020 784 56 03_large_03.in
      |      ^
main.c:65:39: error: invalid suffix "_large_03.in" on integer constant
   65 | Case #14 : Accepted 00:00 2020 784 56 03_large_03.in
      |                                       ^~~~~~~~~~~~~~
main.c:73:13: error: stray '#' in program
   73 | Judge Input #  (  | )  Judge Output #  (  | )
      |             ^
main.c:73:37: error: stray '#' in program
   73 | Judge Input #  (  | )  Judge Output #  (  | )
      |                                     ^