what?

P5737 【深基7.例3】闰年展示

你的空格是中文空格,要改成英文的
by R7_O @ 2024-04-03 17:13:04


```cpp #include<iostream> using namespace std; int ans[1500]; int main(){ int begin,end; cin>>begin>>end; int cnt=0; for(int i=begin;i<=end;i++){ if((i%4==0&&i%100!=0)||i%400==0){ ans[cnt++]=i; } } cout<<cnt<<endl; for(int i=0;i<cnt;i++){ cout<<ans[i]<<" "; } cout<<endl; return 0; }
by _safdsfdeaf_ @ 2024-04-03 17:14:17


@[xuekaiyang](/user/1293303) 加一下吧,团队急需人才 https://www.luogu.com.cn/team/74508
by _safdsfdeaf_ @ 2024-04-03 17:15:50


|