Submission #72342110
Source Code Expand
/*Don’t cut corners, don’t over-rely on AI. Stay grounded, and keep challenging yourself with every single problem.*/
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using u64 = unsigned long long;
constexpr i64 INF = 998244353;
constexpr int N = 300005;
constexpr double IP = 2.7182818;
constexpr i64 MAXN = 1E6 + 7;
constexpr i64 MOD = 1E9 + 7;
template<class T>
void solve() {
int x, y;
std::cin >> x >> y;
i64 ans = x;
for(int i = 0;i < y; i++){
ans *= 2;
}
std::cout << ans << "\n";
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
i64 t = 1;
// std::cin >> t;
while(t --){
solve<int>();
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Octave |
| User | Dragon66677750 |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 749 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3656 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt |
| All | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00-sample-01.txt | AC | 1 ms | 3460 KiB |
| 00-sample-02.txt | AC | 1 ms | 3540 KiB |
| 00-sample-03.txt | AC | 1 ms | 3460 KiB |
| 01-01.txt | AC | 1 ms | 3580 KiB |
| 01-02.txt | AC | 1 ms | 3548 KiB |
| 01-03.txt | AC | 1 ms | 3580 KiB |
| 01-04.txt | AC | 1 ms | 3612 KiB |
| 01-05.txt | AC | 1 ms | 3656 KiB |
| 01-06.txt | AC | 1 ms | 3584 KiB |
| 01-07.txt | AC | 1 ms | 3620 KiB |
| 01-08.txt | AC | 1 ms | 3460 KiB |
| 01-09.txt | AC | 1 ms | 3612 KiB |