摘要: 时间复杂度O(n) 空间复杂度O(1) 1 #include <cstdio> 2 int main() { 3 int T;scanf("%d",&T); 4 for(int t=1,n,a,l,r,s,L,R,S;t<=T;t++) { 5 scanf("%d",&n),l=L=R=1; 6 f 阅读全文
posted @ 2020-02-08 15:07 墨鳌 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 #include <cstdio> 2 int main(){ 3 for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b)); 4 return 0; 5 } hdu1000 1 #include <cstdio> 2 int main(){ 3 阅读全文
posted @ 2020-02-08 13:26 墨鳌 阅读(236) 评论(0) 推荐(0) 编辑