题解列表
编写题解 2847: 找第一个只出现一次的字符
摘要:解题思路:注意事项:参考代码:a = input()Is = Falsefor i in a: if a.count(i) == 1: print(i) Is = T……
编写题解 2835: 计算书费
摘要:解题思路:注意事项:参考代码:price = (28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65)quantity = tuple(map(int, i……
C语言考试练习题_一元二次方程
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<math.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&……
C语言思路简单,易懂!!! 理解万岁
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define len sizeof(Queue)typedef struct s{ in……
题解 1370: SPY
摘要:解题思路:这是一个普通的模拟判定题。在这里,我们把每个人物名字用map存起来方便处理数据。题目中需要我们判断去逮捕哪些可能的间谍,通过3个列表中的人名来进行判定。A列表:到来的人B列表:将要从Y城送来……
奇偶数之和(题目的意思是包括n的)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
int odd=0,even=0;//odd是……
题解 1060: 二级C语言-同因查找
摘要:解题思路:既然要求出10至1000之内能同时被2、3、7整除的数,那么就直接求出2*3*7的值并能整除此积的数。参考代码:#include<iostream>
using namespace std……