| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1289279 | daffuwu | Star Trek (CEOI20_startrek) | C++20 | 1 ms | 648 KiB |
#include <bits/stdc++.h>
using namespace std;
#define fr first
#define sc second
//startrek
int n, u, v, ans;
long long d;
const int dv = 1e9+7;
int fe(int x, long long y)
{
int res = 1;
for (; y>0; y/=2)
{
if (y%2==1) res = 1ll*res*x%dv;
x = 1ll*x*x%dv;
}
return res;
}
int main()
{
int i;
scanf("%d%lld", &n, &d);
for (i=1; i<=n-1; i++)
{
scanf("%d%d", &u, &v);
}
printf("%d\n", fe(4, d));
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
