結果
| 問題 |
No.976 2 の 128 乗と M
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-16 03:23:04 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 527 bytes |
| コンパイル時間 | 923 ms |
| コンパイル使用メモリ | 96,612 KB |
| 最終ジャッジ日時 | 2025-01-11 04:36:20 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 50 |
ソースコード
#include <iostream>
#include <vector>
#include <climits>
#include <algorithm>
#include <cmath>
#include <map>
#include <set>
#include <string>
#include <bitset>
#include <utility>
#include <numeric>
#include <queue>
#include <stack>
using ll = long long;
using namespace std;
constexpr int MOD = 1e9 + 7;
constexpr ll MOD_LL = ll(1e9) + 7;
int main(void) {
ll m;
cin >> m;
ll x = 1LL;
for(int i = 0; i < 128; ++i) {
x *= 2LL;
x %= m;
cout << i << " : " << x << endl;
}
cout << x << endl;
return 0;
}