.


:




:

































 

 

 

 


B.

G.

: G.in

: G.out

10 .

 

k- [,b] . , (, ).

k , b, ,, k b .

, .

 

 

G.in G.out
1.0 2.0 1.5 5.0 5.0 10.0 2.0 4.0 5.0 5.0 2.0 10.5 8.0 2.0  

 

 

H.

: H.in

: H.out

10 .

 

m (2..10) , (, ) r. , .

m , m , /

.

 

H.in H.out
2.0 3.0 2.0 4.0 1.0 1.0 4.0 4.0 3.0 7.0 4.0 2.0  

 

 

B.

: B.in

: B.out

15 .

 

. 10000. , . .

, .

:

"YES"- , "NO"- .

 

B.in B.out
1 2 4 8 16 32 64 128 YES

 

 

D.

: D.in

: D.out

10

N . (K>1), , (X0,Y0). . , No solution.

N (2<=N<=1000). X0,Y0. N .

No solution.

 

D.in D.out
0.0 0.0 1.0 0.0 0.0 1.0 2.0 2.0 2.0 1.0 2 1.000
0.0 0.0 1.15 0.0 0.0 1.15 1.3 0.0 -1.15 0.0 0 -1.17 3 1.150
1.0 1.0 1.0 0.0 0.0 5.0 1.3 0.0 -1.15 0.0 0 -1.17 No solution

 

 

B. ̸

 

:

: b

: input.txt

: output.txt

: 2 .

 

̸ ( ̸ , .. ). , . ̸ , , . , , , . , .

, ̸ ( 2 10 000), .

. .

 

input.txt output.txt
2 10
1 3

 

 

C.

 

:

:

: input.txt

: output.txt

: 2 .

 

N (N <= 1000) ( , ).

, . ; , .

, .

. . , , , 10 × 11 × 12 10 × 11 × 13.

N; N .

, N , , , NO.

 

input.txt output.txt
1 2 3 10 30 20 5 6 8 2 3 1
1 2 40 10 30 20 5 6 8 NO

 

 

A.

:

:

: input.txt

: output.txt

: 1 .

 

- - , . , , - , , ?

N (1<=N<=10)- , . X, Y, Z . N , Xi, Yi, Zi.

, , 6 . , .

 

input.txt output.txt
0 0 0 1 0 0 0 1 0 3.414214 1 2

 

 

B.

:

: b

: input.txt

: output.txt

: 1 .

 

, , . N R. , , , S=a*b, , . - , - , .

N (0<N<=1000) R ( <=10). a b (1<=a, b <=500).

.

 

input.txt output.txt
10 0.5 3 4  
1 5 10 10  
11 0.5 5 4  

 

 

F.

, . . . . , , , . , , . , , .

, . , . . , : Impossible, sorry!.

N (integer>0) , S . : , . .

, 4 , Impossible, sorry!

 

50 50.5 10.5 Kat Sasha Olga Valentina 5.8 Sasha Kat 6.7 Mariya Sasha Olga 35.5000
1 1.9999 10 Viktor Impossible, sorry!

 

 

F. (1 .)

. . , . , - . , . . . . N (N ). .

, N .

(input.txt)

N (integer>0).

(output.txt)

- .

 

 

input.txt output.txt
   
   
   
   

 

 

C 2009 13 .

13 ( 2009 10 000 )? , , 4 100, 400, , 2012 2400 - , 2100 . -: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.

:

:

Sunday

 

, , , , , . , , .

255 , , . , (program), . , .

, : I am product Grandfather and my Mother. My name is Lena. : I am duct ndfather and y Mother. My name is Lena., proGram.

:

I am product Grandfather and my Mother. My name is Lena.

:

I am duct ndfather and y Mother. My name is Lena.

 

N ( 1 10 000) , .

 

Pascal C++
var S: shortint; I: byte; N:Word; begin s:=0; read(n); for I:=1 to n do begin s:=s+I; end; writeln(s); end. #include int main(){ short int S; unsigned short int I; unsigned int N; cin>>N; S=0; for (I=1;I cout<<S; return 0; }

 

, .

:

:

 

5.

: 1 .

, , , . -. .

- ( 1 10 ). - ( 0 10000 ).

.

 

.,  

 

 

. , , . , N . , , .

: (1<N<= 1000). ( 2 1000, 25 , ).

: , ( ), ( ) .

:

.

:

8 6 5 7 10 3 2 9 4

Twitter Facebook

: (Atom)

 



<== | ==>
. |
:


: 2017-02-11; !; : 628 |


:

:

: , .
==> ...

2021 - | 1642 -


© 2015-2024 lektsii.org - -

: 0.045 .