Submission #57242

#TimeUsernameProblemLanguageResultExecution timeMemory
57242babo창문 (kriii4_C)C++14
100 / 100
4 ms936 KiB
#include <bits/stdc++.h>
#define L long long
#define mod 1000000007

using namespace std;

L mult(L x,L y){
	if(y==1) return x;
	L temp=mult(x,y/2);
	if(y%2) return (temp+temp+x)%mod;
	else return (temp+temp)%mod;
}

L n,m;

int main()
{
	scanf("%lld %lld",&n,&m);
	printf("%lld\n",mult(n+2,m+2));
}

Compilation message (stderr)

C.cpp: In function 'int main()':
C.cpp:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld %lld",&n,&m);
  ~~~~~^~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...