From the CS olympiads:
binary in mult times 7 binary out ->
pythhon:(python code: int(raw_input(),base=2)*7
james.lu.75491856
0
Junior Poster
Recommended Answers
Jump to PostIn my programs I usually only encounter 3 types of epic one liners, they all use the ternary conditional operator extensively.
(all in c++)Type 1: Conditional arithmetic - When I want to change how an equation behaves based on conditions. Example taken directly from the add function of my …
Jump to PostThe only useful one-liner I know is in Pascal/Delphi:
asm int 3; end;
All 6 Replies
Labdabeta
182
Posting Pro in Training
Featured Poster
NardCake
30
Posting Pro in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.