結果
問題 | No.976 2 の 128 乗と M |
ユーザー |
![]() |
提出日時 | 2020-02-01 00:40:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 570 ms |
コンパイル使用メモリ | 61,720 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-17 12:52:05 |
合計ジャッジ時間 | 1,979 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 50 |
ソースコード
#include<iostream> #include<vector> #include<string> #include<math.h> using namespace std; typedef long long ll; int main(){ ll m; cin>>m; ll ans=1; int i=128; while(i--){ ans*=2; ans%=m; } cout<<ans<<endl; return 0; }