摘要:
第四题 文化之旅 #include<bits/stdc++.h> using namespace std; int maxn=0x3f3f3f,n,k,m,s,t,u,v,d,a[10001],p[10001][10001],s1[10001][10001]; int main(){ cin>>n> 阅读全文
posted @ 2019-04-14 11:55
星星梦
阅读(157)
评论(0)
推荐(0)
摘要:
第三题 摆花 #include<bits/stdc++.h> using namespace std; int a[101],dp[101][101],x,y,z,m,n; int main(){ cin>>n>>m; dp[0][0]=1; for(int i=1;i<=n;i++) cin>>a 阅读全文
posted @ 2019-04-14 11:54
星星梦
阅读(258)
评论(0)
推荐(0)
摘要:
第二题 寻宝 #include<bits/stdc++.h> using namespace std; int sum,qqq,q11,kk,k,n,m,a[10001][10001],s[10001][10001],w[10001]; int main(){ cin>>n>>m; for(int 阅读全文
posted @ 2019-04-14 11:53
星星梦
阅读(224)
评论(0)
推荐(0)
摘要:
第一题 质因数分解 #include<bits/stdc++.h> using namespace std; int n,x,y; int main(){ cin>>n; for(int i=2;i<=n;i++) { if(n%i==0) { x=n/i; y=max(x,i); break; } 阅读全文
posted @ 2019-04-14 11:51
星星梦
阅读(191)
评论(0)
推荐(0)

浙公网安备 33010602011771号