题解列表
循环方法解题,笨方法基础算法
摘要:解题思路:循环注意事项:因为是10^18所以用long代替int参考代码:#include<stdio.h>int main(){ long a,b,n; int i,c; scanf("%ld……
基础算法,循环方法求解 奇偶性求解分开循环
摘要:解题思路:循环方式求解问题,通过半数 来求解注意事项 奇偶性质参考代码:#include<stdio.h>int main(){ int n,i,a; scanf("%d",&n); if(n%……
注意空格,好事多磨吧
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout << " " << "Nine-by-nine Multi……
不能四舍五入,所以要用点小技巧
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,t; double m; cin >> n >>……
编程小白能看懂的c++98
摘要:解题思路:注意事项:参考代码:#include
#include
using namespace std;
int main()
{
int q = 0;
cin >> q;
char ……
2783: 判断是否为两位数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a/100==0&&a/10>0) ……
1043: [编程入门]三个数字的排序
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d %d %d",&a,&b,&c); if……
1151: C语言训练-计算一个整数N的阶乘
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int product(int n){ int s; if(n==0) return s=1; else ……