Language Test

Submission #1628641

Source codeソースコード

N=scanf("%d", "C");
M=zeros(1,N);
sum=0;
j=1;
for i = 1:N
	M(1,i)=scanf("%d", "C");
end
M=sort(M);

for i = 1:N
	sum = sum + M(N-i+1)^2*j;
	j=j*-1;
end

printf("%d\n",sum*pi);

Submission

Task問題 E - N重丸
User nameユーザ名 TeeJey
Created time投稿日時
Language言語 Octave (4.0.2)
Status状態 WA
Score得点 0
Source lengthソースコード長 189 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Test case

Set

Set name Score得点 / Max score Cases
Sample - example_0.txt,example_1.txt
All 0 / 100 example_0.txt,example_1.txt,maxrand_0.txt,maxrand_1.txt,maxrand_2.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,special_0.txt,special_1.txt,special_2.txt,special_3.txt,example_0.txt,example_1.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
example_0.txt WA
example_1.txt AC 140 ms 9416 KB
maxrand_0.txt WA
maxrand_1.txt WA
maxrand_2.txt WA
random_0.txt AC 149 ms 9416 KB
random_1.txt WA
random_2.txt WA
random_3.txt AC 153 ms 9416 KB
random_4.txt WA
random_5.txt WA
random_6.txt WA
random_7.txt WA
random_8.txt WA
random_9.txt AC 159 ms 9416 KB
special_0.txt AC 139 ms 9420 KB
special_1.txt AC 140 ms 9420 KB
special_2.txt AC 140 ms 9416 KB
special_3.txt AC 140 ms 9420 KB