这题好像可以打表
查看原帖
这题好像可以打表
1125054
__XU__楼主2024/10/22 19:53

rt

#include<bits/stdc++.h>
using namespace std;
int n,m;
const string s[15][25]={{"1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1",},{"1","2","4","6","8","10","12","14","16","18","20","22","24","26","28","30","32","34","36","38"},{"1","40","0","44","0","52","0","68","0","100","0","164","0","292","0","548","0","1060","0","2084"},{"1","2086","2090","2102","2130","2204","2388","2860","4052","7086","14778","34318","83906","209812","529412","1340788","3400516","8629430","21903562","55601574"},{"1","55601576","0","55601604","0","55601912","0","55605304","0","55642672","0","56054336","0","60589424","0","110550128","0","660941200","0","6724313168"},{"1","6724313170","6724313178","6724313252","6724313560","6724315704","6724326344","6724391694","6724742282","6726790338","6738127722","6803055326","7166999022","9234833722","20883786318","86861922642","459283255578","2565982043834","14466917074042","81753999490622"},{"1","81753999490624","0","81753999490808","0","81753999501448","0","81754000104216","0","81754034237200","0","81755967549468","0","81865479696632","0","88068871836472","0","439465285393108","0","20344621599022156"},{"1","20344621599022158","20344621599022174","20344621599022646","20344621599026038","20344621599091388","20344621599694156","20344621608971308","20344621707937584","20344623071393992","20344638745947796","20344843312426654","20347284777476606","20378310911852622","20755551490840458","25486979831434486","83547599102844594","807047356095004150","9725840721828845218","120508179233796804328"},{"1","120508179233796804330","0","120508179233796805522","0","120508179233797156110","0","120508179233896122386","0","120508179261730109950","0","120508187089305657022","0","120510388751635596750","0","121129701792228540886","0","295343602334313918950","0","49302503056700180980466"},{"1","49302503056700180980468","49302503056700180980500","49302503056700180983534","49302503056700181020902","49302503056700183068958","49302503056700217201942","49302503056701580658350","49302503056729414645914","49302503057663935559130","49302503079173531007378","49302503735326482325444","49302519917952703069028","49302987872750145043596","49314991958742177812316","49651863904555678866224","58488101678531187549764","302314893831219625409854","6779020134704019122434070","183808053419852359774440914"}};
int main(){
	
	cin>>m>>n;
	cout<<s[m-1][n-1];
	return 0;
}
这个是错误代码
2024/10/22 19:53
加载中...