0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

みんなはシフト演算子を知らぬか

Posted at

この問題、答えは42×2²²で、僕は21×2²³という意味でこの提出をした。

print(21<<23)

最短コードだと思って、もう提出している人がいるかなと思い、探してみた。その結果…

俺だけ…

2**xよりも1<<xの方が早いのだ!!!そして短いのだ!!!(?)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?