Submission #59870


Source Code Expand

#include <cstdio>
#include <algorithm>
using namespace std;

int N, M;
int main(){
	scanf("%d %d", &Nm &M);
	int t = 0;
	for(int i = 1; i <= N; i++){
		t = (t + i * i) % M;
	}
	printf("%d\n", M);
	return 0;
}

Submission Info

Submission Time
Task A - 団子とうさぎ
User sndtkrh
Language C++ (G++ 4.6.4)
Score 0
Code Size 223 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:18: error: ‘Nm’ was not declared in this scope