题解列表
求大神来看看为什么通不过AC(通过一次)是差在哪里
摘要:解题思路:注意事项:参考代码:#include <iostream>
#include <string>
using namespace std;
int main() {
string……
可 AC (C语言代码)
摘要:解题思路:
注意事项:
参考代码:
#include<stdio.h>
#include<string.h>
int main()
{
int i;
char str[10……
C二级辅导-等差数列 (C语言代码)
摘要:解题思路:数列思维注意事项:参考代码:#include<stdio.h>
int main()
{
int n,i;
int a = 2,sum = 2;
scanf_s("%d", ……
简单的a+b (C语言代码)
摘要:# include <stdio.h>int main (void){ int a, b; while (scanf("%d%d", &a, &b)) { printf……
人民币问题 (C语言代码)
摘要:解题思路:若钱数为a,都换成5元最多有i=a/5张,都换成2元最多有j=a/2张,都换成1元最多有a张,在三种钱币的取值范围内循环,若总价值等于a,就能找到符合要求的钱币张数。转化成代码就是:#inc……
求所给范围内水仙花数并排列 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int a,b; while(c……
数日子 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n=2018,s=19;……
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int c=-100,F;while(c<=150){F = 32 + c*9/5;printf("c=%d->f……
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n,b,c,d,e,f; scanf("%d",&n); { if(n>=0&&n<=9) pri……