UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#211940#3815. 种树xiangjyCompile Error//C++1.9kb2024-10-13 08:58:362024-10-13 12:51:57

answer

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
/*
\\\\ \\ \\ \\ \\ \\ \\ \\ || || || || || || // // // // // // // ////
\\\\ \\ \\ \\ \\ \\ \\        _ooOoo_          // // // // // // ////
\\\\ \\ \\ \\ \\ \\          o8888888o            // // // // // ////
\\\\ \\ \\ \\ \\             88" . "88               // // // // ////
\\\\ \\ \\ \\                (| -_- |)                  // // // ////
\\\\ \\ \\                   O\  =  /O                     // // ////
\\\\ \\                   ____/`---'\____                     // ////
\\\\                    .'  \\|     |//  `.                      ////
//==                   /  \\|||  :  |||//  \                     ==\\
//==                  /  _||||| -:- |||||-  \                    ==\\
//==                  |   | \\\  -  /// |   |                    ==\\
//==                  | \_|  ''\---/''  |   |                    ==\\
//==                  \  .-\__  `-`  ___/-. /                    ==\\
//==                ___`. .'  /--.--\  `. . ___                  ==\\
//==             ."" '<  `.___\_<|>_/___.'  >' "".               ==\\
//==            | | :  `- \`.;`\ _ /`;.`/ - ` : | |              \\\\
////            \  \ `-.   \_ __\ /__ _/   .-` /  /              \\\\
////      ========`-.____`-.___\_____/___.-`____.-'========      \\\\
////                           `=---='                           \\\\
//// //   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  \\ \\\\
//// // //      佛祖保佑      永无BUG      永不修改        \\ \\ \\\\
//// // // // // // || || || || || || || || || || \\ \\ \\ \\ \\ \\\\
*/
int main(){
	int n,m,k;
	scanf("%d%d%d",&n,&m,&k);
	if(k>n||k>m) {
		printf("0");
		return 0;
	}
	long long ans=1;
	for(int i=1; i<=k; i++) {
		ans*=(n*m);
		n--,m--;
	}
	long long sum=1;
	for(int i=1; i<=k; i++) sum*=i;
	printf("%llld",ans/sum);
	return 0;
}

详细

answer.code: In function 'int main()':
answer.code:31:25: error: 'scanf' was not declared in this scope
  scanf("%d%d%d",&n,&m,&k);\x0d
                         ^
answer.code:33:13: error: 'printf' was not declared in this scope
   printf("0");\x0d
             ^
answer.code:43:24: error: 'printf' was not declared in this scope
  printf("%llld",ans/sum);\x0d
                        ^