์ƒˆ์†Œ์‹

๐Ÿงฎ PS

์ฝ”๋“œ์—… (Code up) 1059 ~ 1062 (๋น„ํŠธ๋‹จ์œ„ ๋…ผ๋ฆฌ์—ฐ์‚ฐ) ํŒŒ์ด์ฌ ํ’€์ด

  • -

๋ฌธ์ œ๋งํฌ : https://codeup.kr/problemsetsol.php?psid=23

 

๋ฌธ์ œ์ง‘ / ๊ธฐ์ดˆ 100์ œ

 

codeup.kr

*1059๋ฒˆ

a = int(input())
print(~a)

*1060๋ฒˆ

a,b = map(int,input().split())
print(a&b)

*1061๋ฒˆ

a,b = map(int,input().split())
print(a|b)

*1062๋ฒˆ

a,b = map(int,input().split())
print(a^b)

*C++/CPPํ’€์ด๋„ code up ์นดํ…Œ๊ณ ๋ฆฌ์— ์žˆ์Šต๋‹ˆ๋‹ค.

Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.