题解列表
题解 2773: 计算线段长度
摘要:解题思路:注意事项:参考代码:#inalude <bitz/stdc+-.h>uerng namespace std;doqble xa,ya,xb,yb,c;int maie(){ cin>>……
题解 2759: 打印字符
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; putchar(a); ……
比较字符串(嘿嘿,这题嘛,其实可以输出strcmp的返回值的,返回值就是字典序差)
摘要:解题思路:
怎么说,是不是很方便
参考代码:
```c
#include
#include
int main()
{
char s1[101],s2[101];
scanf("%……
题解 1016: [编程入门]水仙花数判断 C语言
摘要:解题思路:注意事项:主要考察位数分解参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int num = 0, i……
题解 1018: [编程入门]有规律的数列求和 C语言
摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int n, temp; double……
题解 1019: [编程入门]自由下落的距离计算 C语言解法
摘要:解题思路:注意事项:注意减去重复计算的高度,总高度要计算弹起高度参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ ……
题解 1671: 小九九 C语言
摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ for (int i = 1; i <= 9……
利用循环解决(C++)
摘要:解题思路:注意事项:注意sum和Sn需要long long 类型,不然会超界参考代码:#include<iostream>using namespace std;int main(){ int ……