摘要: #include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n; cin>>n; cout<<1; for(int i=3;i<=n;i++) if(i%2==1) cout<<" "<<i; 阅读全文
posted @ 2018-07-15 10:27 换牙 阅读(57) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<algorithm>using namespace std;int main (){ int t; cin>>t; while(t--) { char s[3]; cin>>s[0]>>s[1]>>s[2]; sort(s,s+3); cout< 阅读全文
posted @ 2018-07-15 10:25 换牙 阅读(65) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main (){ int a,b; cin>>a>>b; cout<<a+b<<endl; return 0;} 暑假留校,今天开始重新刷题,从南阳oj上简单的开始~ 阅读全文
posted @ 2018-07-15 10:19 换牙 阅读(77) 评论(0) 推荐(0) 编辑