結果
| 問題 | No.1578 A × B × C |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-21 18:24:22 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 2,917 ms |
| コンパイル使用メモリ | 272,924 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-04 04:50:19 |
| 合計ジャッジ時間 | 3,949 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;
const ll mod = 1000000007;
ll a, b, c, k, x, y;
int main() {
cin >> a >> b >> c >> k;
x = a * b % mod;
x = x * c % mod;
y = pow_mod(2, k, mod - 1);
cout << pow_mod(x, y, mod) << endl;
return 0;
}