1
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.

pythonのpow関数が引数3つとることを知らなかった話。

Last updated at Posted at 2023-03-11
pow(x, y, z) = (x**y)%z

pythonのpow関数は3つ引数を持つことができます。pow(x,y,z)と書くことでxのy乗をzで割ったあまりとなるので競プロとか始めた人は覚えておくと良きかもです。

1
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
1
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?