Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
zad27-notoptimal
//fpc 3.0.0 program zad27; type mas = array [1..30000] of byte; var x : mas; var res:longint; var kdel, kchet, knech, i, j, k : integer; begin writeln('Hello, world!'); kdel:=0; kchet:=0; knech:=0; res:=0; for i:=1 to length(x) do begin x[i]:=i; if i>1 then for j:=1 to i-1 do begin if (((x[i]+x[j]) mod 2) = 1) and (((x[i]*x[j]) mod 3) = 0) then res:=res+1; end; end; writeln('res=',res); end.
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
NguyenThanhThe11Sinh
Pascal triangle
elas_ex0
test27
TOHOP
Huong11a2@
звёздное небо и подсчёт кратных звёзд + массив
GABRIELLA ALVES DA SILVA 600307538
города
TanTai11A2@
stackse - search stackoverflow differently
Please log in to post a comment.