5行代码解决拆分位数问题 摘要:解题思路:printf函数在处理参数的时候是从右向左处理的,所以输入的内容最先被最后一个参数接收参考代码:#include<stdio.h>int main(){ printf("%c %c %…… 题解列表 2022年12月24日 0 点赞 0 评论 436 浏览 评分:9.9
C语言训练-大、小写问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; gets(a); for(…… 题解列表 2022年12月24日 0 点赞 0 评论 345 浏览 评分:9.9
用指针几行搞定(c语言) 摘要:解题思路:按题意写即可注意事项:使用gets()输入参考代码:#include<stdio.h> #include<string.h> int main() { char str[100],…… 题解列表 2022年12月24日 0 点赞 0 评论 666 浏览 评分:9.9
求1+2+3+...+n的值-题解(C语言代码)通项直接输出 摘要:解题思路:求1+2+3+...+n的值注意事项:注意输出范围lld参考代码:#include<stdio.h> int main() { long long int n; scanf("%…… 题解列表 2022年12月24日 0 点赞 0 评论 602 浏览 评分:9.9
用筛法求之N内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,t; scanf("%d",&n); for(i=2;i<=n…… 题解列表 2022年12月24日 0 点赞 0 评论 273 浏览 评分:0.0
简单明了,看了就懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while (scanf("%d %d",&a,&b)!=EOF) { …… 题解列表 2022年12月24日 0 点赞 0 评论 339 浏览 评分:0.0
公共子序列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[1005][1005];int main(){ string s1,…… 题解列表 2022年12月24日 0 点赞 0 评论 367 浏览 评分:0.0
1479:删除数组中的0元素 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int count = 0; void CompactIntegers(int a[], int gt); //数组元素,数组元…… 题解列表 2022年12月24日 0 点赞 0 评论 584 浏览 评分:10.0
1144一行解(Python) 摘要:解题思路:掌握lambda写法注意事项:注意结构的顺序,不建议解题这样书写参考代码:print((' '.join(n for n in list(map(lambda x : &#…… 题解列表 2022年12月24日 0 点赞 0 评论 509 浏览 评分:9.0
石头剪子布,硬解(doge) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; char a[10],b[10]; scan…… 题解列表 2022年12月24日 1 点赞 0 评论 1109 浏览 评分:9.9