正文
增加 135 行删除 4 行
639 行未改动全部展开6406416426436446456466476486496506512,264 行未改动全部展开291629172918291929202921639 行未改动全部展开#define code by QhcKing#define ll long long#define TT int _T;cin>>_T;while(_T--)int main(){bool a;char b;cout<<sizeof(a)<<" "<<sizeof(c);}```### 47.空格分隔输出```cpp#include <bits/stdc++.h>2,264 行未改动全部展开return 0;}```### 更新日志#### 20260416639 行未改动全部展开6406416426436446456466476486496506516522,264 行未改动全部展开2917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052639 行未改动全部展开#define code by QhcKing#define ll long long#define TT int _T;cin>>_T;while(_T--)int main(){bool a;char b;cout<<sizeof(a)<<" "<<sizeof(b);}```### 47.空格分隔输出```cpp#include <bits/stdc++.h>2,264 行未改动全部展开return 0;}```### 184.求特殊自然数```cpp#include <bits/stdc++.h>using namespace std;#define IOS cin.tie(nullptr)->ios::sync_with_stdio(false)#define code by QhcKing#define ll long long#define TT int _T;cin>>_T;while(_T--)signed main(){//freopen("name.in","r",stdin);//freopen("name.out","w",stdout);IOS;cout<<248<<endl<<503<<endl<<305;}```### 185.统计满足条件的4位数个数```cpp#include <bits/stdc++.h>using namespace std;#define IOS cin.tie(nullptr)->ios::sync_with_stdio(false)#define code by QhcKing#define LL long long#define TT int _T;cin>>_T;while(_T--)signed main(){//freopen("name.in","r",stdin);//freopen("name.out","w",stdout);IOS;LL n,a,b,c,d,x,m=0;cin>>n;for(int i=1;i<=n;i++){cin>>x;a=x/1000;b=(x-1000*a)/100;c=(x-1000*a-100*b)/10;d=x-1000*a-100*b-10*c;if(d-a-b-c>0)m++;}cout<<m;return 0;}```### 186.分类求和```cpp#include <bits/stdc++.h>using namespace std;#define IOS cin.tie(nullptr)->ios::sync_with_stdio(false)#define code by QhcKing#define LL long long#define TT int _T;cin>>_T;while(_T--)signed main(){//freopen("name.in","r",stdin);//freopen("name.out","w",stdout);IOS;LL x,a=0,b=0,c=0,d=0;while(cin>>x){if(x>0){a++;c+=x;}else if(x<0){b++;d+=x;}}cout<<a<<" "<<b<<" "<<c<<" "<<d;return 0;}```### 187.分离整数的各个数位```cpp#include <bits/stdc++.h>using namespace std;#define IOS cin.tie(nullptr)->ios::sync_with_stdio(false)#define code by QhcKing#define LL long long#define TT int _T;cin>>_T;while(_T--)signed main(){//freopen("name.in","r",stdin);//freopen("name.out","w",stdout);IOS;char a[10];int i;cin.get(a,9);while(a[i]!='\0')i++; i--;for(;i>=0;i--)cout<<a[i]<<" ";}```### 188.数字之和```cpp#include <bits/stdc++.h>using namespace std;#define IOS cin.tie(nullptr)->ios::sync_with_stdio(false)#define code by QhcKing#define LL long long#define TT int _T;cin>>_T;while(_T--)char a[12];signed main(){//freopen("name.in","r",stdin);//freopen("name.out","w",stdout);IOS;int sum;cin.get(a,11);for(int i=0;a[i]!='\0';i++)if(a[i]>'0'&&a[i]<='9')sum+=a[i]-'0';cout<<sum;}```### 189.数字反转```cpp#include <bits/stdc++.h>using namespace std;#define IOS cin.tie(nullptr)->ios::sync_with_stdio(false)#define code by QhcKing#define LL long long#define TT int _T;cin>>_T;while(_T--)signed main(){//freopen("name.in","r",stdin);//freopen("name.out","w",stdout);IOS;int n,s;for(cin>>n;n;n/=10)s*=10,s+=n%10;cout<<s;}```### 更新日志#### 20260417