题解列表

筛选

判断一个数能否同时被3和5整除

摘要:解题思路:同时被3和5整除注意事项:题目中说的是n别搞错了自定义;还有等号是==;条件是同时存在所以用&&参考代码:#include<stdio.h>int main(){    int n;    ……

最基本的思路这道题

摘要:解题思路:利用不断输入想到while,然后利用字符数组将小写字母-32变成大写字母;注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){  ……

思路很简单,小学水平

摘要:解题思路:自己能够猜到 邮局的点肯定位于n户人家所包围形成的长方形内 讲每个点到n户人家的距离算出找最小就行注意事项:参考代码:#include<bits/stdc++.h>using namespa……

1095: The 3n + 1 problem

摘要:解题思路:注意事项:参考代码:#includeint asd(int n){    int a; if (n % 2 == 0) { a = 1; } else { a = 0; } return……

3006: 适合晨练

摘要:解题思路:根据题意得条件即可注意事项:注意条件判断参考代码:#include<stdio.h>int main(){    int t;    scanf("%d",&t);    if(25<=t ……