.


:




:

































 

 

 

 


.




Input.txt X (-231 <= X <= 231-1) Y (-231 <= Y <= 231-1).

Output.txt R OVERFLOW 1251 .

Input.txt Output.txt
- 2147483647 1 -2147483647

 

Input.txt Output.txt
-2147483648 2147483647 OVERFLOW

1. 0. "Runtime Error". C C++ , int main() 0.

  1. . , Security Violation.

3. . .

Pascal/Delphi begin assign(input, 'input.txt'); assign(output, 'output.txt'); reset(input); rewrite(output); {...} close(input); close(output); end. C #include <stdio.h> int main() { freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); //... return 0; }

 

32- X Y. R = X - Y , . , 231-1 -231. R, OVERFLOW.

Input.txt X (-231 <= X <= 231-1) Y (-231 <= Y <= 231-1).

Output.txt R OVERFLOW 1251 .

Input.txt Output.txt
-2147483647 1 -2147483648

 

Input.txt Output.txt
-2147483648 1 OVERFLOW

 

32- X Y. R = X + Y , . , 231-1 -231. R, OVERFLOW.

Input.txt X (-231 <= X <= 231-1) Y (-231 <= Y <= 231-1).

Output.txt R OVERFLOW 1251 .

Input.txt Output.txt
2147483646 1  

 

Input.txt Output.txt
1 2147483647 OVERFLOW

 

 

2.

 

( ). , .

(Y or X and (Y or not X)) ↔ (not X or (X and Y) or not Y)

 

 

( ). , .

(not X and (not X or not Y)) → (not X → ((X and Y) or X))

 

 

( ). , .

((not X or Y) → Y) ↔ ((not X → (not X or Y)) or X)

 

 

12 (3 )

, ( ). 100 . , , . . , , . , 0.

Input.txt X (0 <= Xi <= 100). . 10 100.

Output.txt . .

Input.txt Output.txt
80 50 40 80 75 30 75 50 20 70 0 3

, . 100 . , . , . . , .

Input.txt X (0 <= Xi <= 100). . 10 100.

Output.txt . .





:


: 2016-03-27; !; : 954 |


:

:

,
==> ...

1727 - | 1665 -


© 2015-2024 lektsii.org - -

: 0.014 .