摘要:
1002 写出这个数 (20分) [1002 写出这个数 (20分)](https://pintia.cn/problem-sets/994805260223102976/problems/994805324509200384) #include<iostream> #include<string> 阅读全文
posted @ 2020-06-09 18:00
chstor
阅读(113)
评论(0)
推荐(0)
摘要:
1021 个位数统计 (15分) #include<iostream> #include<string> #include<cstdio> using namespace std; int main(){ string s;cin>>s; int a[1005]={0}; for(int i=0;i 阅读全文
posted @ 2020-06-09 17:59
chstor
阅读(98)
评论(0)
推荐(0)
摘要:
1006 换个格式输出整数 (15分) #include<iostream> #include<string> #include<cstdio> using namespace std; int main(){ int n;cin>>n; string s=to_string(n); if(s.le 阅读全文
posted @ 2020-06-09 17:56
chstor
阅读(111)
评论(0)
推荐(0)
摘要:
1037 在霍格沃茨找零钱 (20分) 跟时间小时分钟题的进制转换大体一样,模拟一下 #include<iostream> #include<cstdio> const int Galleon=17*29; const int Sickle=29; using namespace std; int 阅读全文
posted @ 2020-06-09 09:24
chstor
阅读(109)
评论(0)
推荐(0)
摘要:
1022 D进制的A+B (20分) 这题是十进制转换为d进制的题 从后往前存入的 do{ z[num++]=n%d; n/=d; }while(n!=0); #include<iostream> using namespace std; int main(){ int a,b,d;cin>>a>> 阅读全文
posted @ 2020-06-09 09:23
chstor
阅读(180)
评论(0)
推荐(0)

浙公网安备 33010602011771号