题解列表

筛选

题解 1370: SPY

摘要:解题思路:这是一个普通的模拟判定题。在这里,我们把每个人物名字用map存起来方便处理数据。题目中需要我们判断去逮捕哪些可能的间谍,通过3个列表中的人名来进行判定。A列表:到来的人B列表:将要从Y城送来……

题解 1060: 二级C语言-同因查找

摘要:解题思路:既然要求出10至1000之内能同时被2、3、7整除的数,那么就直接求出2*3*7的值并能整除此积的数。参考代码:#include<iostream> using namespace std……

自定义函数之字符串连接

摘要:解题思路:用字符串连接函数即可注意事项:参考代码:#include<stdio.h>int main(){    char a[100],b[100];    gets(a);    gets(b);……

C语言训练-大、小写问题

摘要:解题思路:利用for循环,查看ASCII码值即可注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char a[100];    ……

奇数单增序列

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); int a[n]; int b; in……

1866: 三位数反转

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() {    ……