結果
| 問題 | No.976 2 の 128 乗と M |
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-08-23 18:03:02 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 337 bytes |
| 記録 | |
| コンパイル時間 | 764 ms |
| コンパイル使用メモリ | 114,624 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-02 06:30:16 |
| 合計ジャッジ時間 | 2,463 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 50 |
ソースコード
#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
#include <iomanip>
#include<set>
#include <numeric>
using namespace std;
int main()
{
long long m, t;
cin >> m;
t =(long long)pow(2, 60);
for (int i = 0; i < 68; i++){
t *= 2;
t %= m;
}
cout << t << endl;
}
kpinkcat