摘要: 7-1 Hello World! (5分) #include<bits/stdc++.h> using namespace std; int main() { cout<<"Hello World!"<<endl; return 0; } View Code 7-2 电子汪 (10分) 在一行中输出 阅读全文
posted @ 2020-11-08 20:46 一只幽灵飘过 阅读(96) 评论(0) 推荐(0) 编辑
摘要: A n如果为偶数,输出n/2个'2',n如果为奇数,n/2-2个,一个3 #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; cout<<n/2<<endl; for(int i=1; i<n-2; i+= 阅读全文
posted @ 2020-11-08 19:20 一只幽灵飘过 阅读(87) 评论(0) 推荐(0) 编辑