Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Some task
Vladislav_Bezruk
Nov 12th, 2020
(
edited
)
99
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<stdio.h>
char
a,b
=
'0'
;
int
main
(
)
{
while
(
scanf
(
"%c"
,
&
a
)
==
1
and a
==
'0'
or a
==
'1'
)
{
if
(
a
==
b
)
printf
(
"0"
)
;
else
printf
(
"1"
)
;
b
=
a
;
}
return
0
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
trial
JavaScript | 10 sec ago | 3.92 KB
Enelion Stylo Energy Guard
C++ | 8 min ago | 19.42 KB
[D] Лента - с модификацией колонок
JavaScript | 20 min ago | 0.33 KB
Untitled
Python | 24 min ago | 33.36 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 29 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 53 min ago | 0.38 KB
ejer1_tp5
C++ | 1 hour ago | 0.92 KB
ok 993
Python | 1 hour ago | 2.54 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!