답안 #57244

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
57244 2018-07-14T10:48:39 Z babo 창문 (kriii4_C) C++14
100 / 100
4 ms 620 KB
#include <bits/stdc++.h>
#define L long long
#define mod 1000000007

using namespace std;

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

Compilation message

C.cpp: In function 'int main()':
C.cpp:10:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld %lld",&n,&m);
  ~~~~~^~~~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 2 ms 356 KB Output is correct
3 Correct 3 ms 356 KB Output is correct
4 Correct 2 ms 400 KB Output is correct
5 Correct 2 ms 400 KB Output is correct
6 Correct 3 ms 420 KB Output is correct
7 Correct 3 ms 496 KB Output is correct
8 Correct 3 ms 496 KB Output is correct
9 Correct 2 ms 496 KB Output is correct
10 Correct 2 ms 568 KB Output is correct
11 Correct 2 ms 568 KB Output is correct
12 Correct 2 ms 568 KB Output is correct
13 Correct 2 ms 568 KB Output is correct
14 Correct 2 ms 568 KB Output is correct
15 Correct 3 ms 568 KB Output is correct
16 Correct 2 ms 568 KB Output is correct
17 Correct 2 ms 568 KB Output is correct
18 Correct 3 ms 568 KB Output is correct
19 Correct 3 ms 568 KB Output is correct
20 Correct 2 ms 568 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 620 KB Output is correct
2 Correct 3 ms 620 KB Output is correct
3 Correct 4 ms 620 KB Output is correct
4 Correct 3 ms 620 KB Output is correct
5 Correct 2 ms 620 KB Output is correct
6 Correct 2 ms 620 KB Output is correct
7 Correct 3 ms 620 KB Output is correct
8 Correct 2 ms 620 KB Output is correct
9 Correct 2 ms 620 KB Output is correct
10 Correct 3 ms 620 KB Output is correct
11 Correct 2 ms 620 KB Output is correct
12 Correct 4 ms 620 KB Output is correct
13 Correct 2 ms 620 KB Output is correct
14 Correct 3 ms 620 KB Output is correct
15 Correct 3 ms 620 KB Output is correct
16 Correct 2 ms 620 KB Output is correct
17 Correct 3 ms 620 KB Output is correct
18 Correct 4 ms 620 KB Output is correct
19 Correct 3 ms 620 KB Output is correct
20 Correct 3 ms 620 KB Output is correct