結果
問題 |
No.976 2 の 128 乗と M
|
ユーザー |
![]() |
提出日時 | 2020-03-26 11:53:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 650 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2025-01-02 01:11:30 |
合計ジャッジ時間 | 3,139 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 50 |
ソースコード
def power( x, n ): res = 1 while n > 0: if n % 2 != 0: res = res * x x = x * x n //= 2 return res M = int(input()) ans = power( 2, 128 ) % M print( ans )