1141: C语言训练-百钱百鸡问题(python) 摘要:解题思路:注意事项:参考代码:price = [5,3,1]s = 0cock = 0hen = 0chicken = 0num = 0for i in range(0,20): cock = …… 题解列表 2021年11月06日 0 点赞 0 评论 657 浏览 评分:0.0
2211 抱歉我投机取巧了C语言这 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n,x,y;scanf("%d %d",&x,&y); n=x;x=y;y=n;printf("%d…… 题解列表 2021年11月06日 0 点赞 0 评论 481 浏览 评分:0.0
1669sorry 我失误得的C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ float s,r;scanf("%f",&r); s=3.1415*r*r;printf("%…… 题解列表 2021年11月06日 0 点赞 0 评论 316 浏览 评分:0.0
[编程入门]自定义函数之字符提取-题解(C语言代码)简单易懂 摘要:解题思路:将输入的字符串通过strlen判断长度,再将字符串和长度导入自定义函数中,并在自定义函数中完成对字母的提取注意事项:参考代码:#include<stdio.h>#include<string…… 题解列表 2021年11月06日 0 点赞 0 评论 857 浏览 评分:6.0
1668不好意思我是说C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ long long x;scanf("%ld",&x); printf("%#o %d %#x",x,x,x…… 题解列表 2021年11月06日 0 点赞 0 评论 361 浏览 评分:0.0
使用util包下的ArrayList工具类 摘要:解题思路:遍历链表a,对于a中的每一个元素,判断链表b中是否包含这个元素,是,a删去这个元素。注意事项:1.创建一个类Stu,对equals方法进行重写,逻辑为当两个Stu的id相等即返回真,为什么要…… 题解列表 2021年11月06日 0 点赞 0 评论 532 浏览 评分:0.0
统计单词C与C++都可 摘要:解题思路:注意事项:参考代码:#include <iostream>//C用户为<stdio.h>#include <cctype>//c用户改为<ctype.h>using namespace st…… 题解列表 2021年11月06日 0 点赞 0 评论 399 浏览 评分:0.0
复习一下switch分支语句 摘要:解题思路:注意事项:参考代码:#include<iostream>int s(double );int main(){ using std::cout; using std::cin; doub…… 题解列表 2021年11月06日 0 点赞 0 评论 583 浏览 评分:9.9
1084: 用筛法求之N内的素数。(python) 摘要:解题思路:注意事项:参考代码:a = int(input())for i in range(2,a+1): for j in range(2,i//2+1): if i == 2:…… 题解列表 2021年11月06日 0 点赞 0 评论 806 浏览 评分:0.0
三个数找最大值(简单易懂) 摘要:解题思路:三个数为a,b,c;再多定义一个变量以储存最大值,输出它。注意事项:这题的知识点主要运用了if-else if来求解,希望大家能弄清楚它的用法参考代码:#include<stdio.h>in…… 题解列表 2021年11月06日 0 点赞 0 评论 570 浏览 评分:0.0