답안 #447889

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
447889 2021-07-28T00:46:54 Z flappybird Star Trek (CEOI20_startrek) C++14
7 / 100
1 ms 204 KB
#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx,avx2,fma")
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
#define MAX 101010
#define MOD 1000000007
#define ln '\n'
ll mpow(ll x, ll y) {
	if (y == 0) return 1;
	if (y == 1) return x;
	ll res = mpow(x, y / 2);
	res *= res;
	res %= MOD;
	if (y % 2) res *= x;
	return res % MOD;
}
signed main() {
	ll N, D;
	cin >> N >> D;
	ll a, b;
	cin >> a >> b;
	ll i;
	ll ans = 1;
	cout << mpow(4, D) << ln;
}

Compilation message

startrek.cpp: In function 'int main()':
startrek.cpp:26:5: warning: unused variable 'i' [-Wunused-variable]
   26 |  ll i;
      |     ^
startrek.cpp:27:5: warning: unused variable 'ans' [-Wunused-variable]
   27 |  ll ans = 1;
      |     ^~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct