摘要:
https://www.acwing.com/problem/content/1479/ 水题。 得到sum后可每一次提取个位数字,或直接将其to_string。 解法一: 1 #include<iostream> 2 #include<algorithm> 3 using namespace st 阅读全文
posted @ 2021-02-16 19:38
greenofyu
阅读(61)
评论(0)
推荐(0)
摘要:
https://www.acwing.com/problem/content/447/ 水题。 1 #include<iostream> 2 using namespace std; 3 int main(void){ 4 int n; 5 cin>>n; 6 int res=0; 7 while( 阅读全文
posted @ 2021-02-16 19:35
greenofyu
阅读(33)
评论(0)
推荐(0)
摘要:
https://www.acwing.com/problem/content/451/ 水题。 确定p有且仅有两个质因子。 故可直接枚举较小的那个质因子。 1 #include<iostream> 2 using namespace std; 3 int main(void){ 4 int p; 5 阅读全文
posted @ 2021-02-16 19:34
greenofyu
阅读(46)
评论(0)
推荐(0)
摘要:
https://www.acwing.com/problem/content/443/ 水题。 1 #include<iostream> 2 using namespace std; 3 int main(void){ 4 int l,r; 5 cin>>l>>r; 6 int cnt=0; 7 f 阅读全文
posted @ 2021-02-16 19:33
greenofyu
阅读(38)
评论(0)
推荐(0)
浙公网安备 33010602011771号