循环方法解题,笨方法基础算法 摘要:解题思路:循环注意事项:因为是10^18所以用long代替int参考代码:#include<stdio.h>int main(){ long a,b,n; int i,c; scanf("%ld…… 题解列表 2023年01月14日 0 点赞 0 评论 200 浏览 评分:0.0
基础算法,循环方法求解 奇偶性求解分开循环 摘要:解题思路:循环方式求解问题,通过半数 来求解注意事项 奇偶性质参考代码:#include<stdio.h>int main(){ int n,i,a; scanf("%d",&n); if(n%…… 题解列表 2023年01月14日 0 点赞 0 评论 251 浏览 评分:0.0
注意空格,好事多磨吧 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout << " " << "Nine-by-nine Multi…… 题解列表 2023年01月14日 0 点赞 0 评论 169 浏览 评分:0.0
不能四舍五入,所以要用点小技巧 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,t; double m; cin >> n >>…… 题解列表 2023年01月14日 0 点赞 0 评论 172 浏览 评分:0.0
2780 奇偶判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if(a%2==0) printf("e…… 题解列表 2023年01月15日 0 点赞 0 评论 136 浏览 评分:0.0
编程小白能看懂的c++98 摘要:解题思路:注意事项:参考代码:#include #include using namespace std; int main() { int q = 0; cin >> q; char …… 题解列表 2023年01月15日 0 点赞 0 评论 96 浏览 评分:0.0
2783: 判断是否为两位数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a/100==0&&a/10>0) …… 题解列表 2023年01月15日 0 点赞 0 评论 190 浏览 评分:0.0
1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d %d %d",&a,&b,&c); if…… 题解列表 2023年01月15日 0 点赞 0 评论 141 浏览 评分:0.0
1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int product(int n){ int s; if(n==0) return s=1; else …… 题解列表 2023年01月15日 0 点赞 0 评论 126 浏览 评分:0.0
1094基础解法(Python) 摘要:解题思路:注意split()的用法即可注意事项:空一行是print(),空两行是print('\n')参考代码:n = int(input())lst = []while True :…… 题解列表 2023年01月15日 0 点赞 0 评论 215 浏览 评分:0.0