메뉴 건너뛰기

결과 (전체)

18nh1 화살표 그리기 / tlsdydaud1

시간메모리제출올바른 답비율
1초128MB94
44.4%
이번 횟수이번 판정시도한 사람성공한 사람비율
3 접근 위반 44
100.0%
판정 세부 내용
케이스 # 소요시간 메모리 판정
0011ms3432kBOK
0021ms3432kBOK
0032ms3432kBOK
0042ms3432kBOK
0052ms3432kBOK
0062ms3432kBOK
0070ms3432kBOK
0081ms3432kBOK
0090ms3432kBOK
0101ms3428kB접근 위반

컴파일 결과
1:83: warning: return type defaults to 'int' [-Wimplicit-int]
P[q[j]].p-P[q[q[j]]].p:0,r[P[j].c]=j)q[j]=r[P[j].c]; for(; i--;)s+=q[r[i]]?P[r[i]].p-P[q[r[i]]].p:0; printf("%ld",s);}
1:116: warning: return type defaults to 'int' [-Wimplicit-int]
P[q[j]].p-P[q[q[j]]].p:0,r[P[j].c]=j)q[j]=r[P[j].c]; for(; i--;)s+=q[r[i]]?P[r[i]].p-P[q[r[i]]].p:0; printf("%ld",s);}
In function 'main':
1:116: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
1:132: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
P[q[j]].p-P[q[q[j]]].p:0,r[P[j].c]=j)q[j]=r[P[j].c]; for(; i--;)s+=q[r[i]]?P[r[i]].p-P[q[r[i]]].p:0; printf("%ld",s);}
1:132: warning: incompatible implicit declaration of built-in function 'scanf'
1:132: note: include '<stdio.h>' or provide a declaration of 'scanf'
1:189: warning: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
P[q[j]].p-P[q[q[j]]].p:0,r[P[j].c]=j)q[j]=r[P[j].c]; for(; i--;)s+=q[r[i]]?P[r[i]].p-P[q[r[i]]].p:0; printf("%ld",s);}
1:417: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
P[q[j]].p-P[q[q[j]]].p:0,r[P[j].c]=j)q[j]=r[P[j].c]; for(; i--;)s+=q[r[i]]?P[r[i]].p-P[q[r[i]]].p:0; printf("%ld",s);}
1:417: warning: incompatible implicit declaration of built-in function 'printf'
1:417: note: include '<stdio.h>' or provide a declaration of 'printf'
소스 정적 분석 결과
이상 없음
010번째 입력 데이터
183
7538 31
8804 31
49659 31
32843 31
74320 31
77410 31
84749 31
19893 31
61789 31
41841 31
91743 31
83255 31
91284 31
63163 31
32371 31
84584 31
82448 31
58759 31
18556 31
17465 31
21608 31
73843 31
87095 31
50857 31
83789 31
48945 31
32059 31
35304 31
73103 31
19257 31
33697 31
10185 31
42123 31
86674 31
15307 31
42788 31
72657 31
82547 31
22181 31
49046 31
5593 31
71427 31
40878 31
13984 31
9800 31
64984 31
78138 31
75772 31
34576 31
50199 31
60360 31
27206 31
81019 31
16704 31
33804 31
4050 31
11948 31
78656 31
44984 31
23651 31
37978 31
390 31
39970 31
71912 31
5279 31
38673 31
69494 31
85549 31
1936 31
30334 31
85265 31
95859 31
43575 31
63249 31
3330 31
33622 31
42967 31
38256 31
72040 31
99237 31
49508 31
19809 31
79790 31
97973 31
58413 31
55616 31
85163 31
68139 31
94829 31
60128 31
78364 31
62312 31
43187 31
40636 31
74856 31
29629 31
61401 31
39473 31
16016 31
17382 31
62594 31
12130 31
53109 31
35020 31
17771 31
64806 31
91414 31
60071 31
63718 31
59066 31
26547 31
40093 31
71724 31
84062 31
68873 31
89311 31
33441 31
78194 31
29466 31
59358 31
7774 31
58718 31
81679 31
97612 31
66158 31
70340 31
82626 31
2328 31
28979 31
3860 31
10586 31
9464 31
81962 31
3385 31
12653 31
10238 31
99990 31
50795 31
76136 31
50061 31
62391 31
42321 31
17758 31
98295 31
83068 31
38324 31
56425 31
22242 31
2638 31
7986 31
26189 31
53110 31
24755 31
48812 31
82193 31
40323 31
48584 31
32568 31
94240 31
10965 31
97155 31
1118 31
43860 31
86459 31
96537 31
50146 31
58722 31
89840 31
18866 31
14197 31
49068 31
30837 31
51965 31
55991 31
19636 31
58171 31
67496 31
52577 31
76146 31
83034 31
94992 31
99216 31
3877 31
위로