結果
| 問題 |
No.976 2 の 128 乗と M
|
| ユーザー |
|
| 提出日時 | 2020-01-31 21:39:15 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 357 bytes |
| コンパイル時間 | 541 ms |
| コンパイル使用メモリ | 118,400 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 16:18:04 |
| 合計ジャッジ時間 | 1,896 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 50 |
ソースコード
#include <iostream>
using lint = long long;
void solve() {
lint m;
std::cin >> m;
lint ans = 1;
for (int i = 0; i < 128; ++i) {
ans = (ans * 2) % m;
}
std::cout << ans << std::endl;
}
int main() {
std::cin.tie(nullptr);
std::cout.tie(nullptr);
std::ios::sync_with_stdio(false);
solve();
return 0;
}