题解列表
The 3n + 1 problem(c语言代码) - 解决33%的错误
摘要:注意事项:i,j的输入大小顺序不确定因此要比较i,j并交换i,j要提前打印,如果输入时i>j,交换后,i,j的值就交换了,打印时就出错n = n*3+1可能导致溢出,因此直接将i,j,n全设为long……
编写题解 2920: 分数线划定
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>struct volun{ int k; int s;};int main(){ in……
敲简单C语言代码!!!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n,r,p,q,k,w=0; char a[100][100]; while(~sc……
敲简单C语言代码!!!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100][100]; a[0][0]=1; int n; scanf ("%d",&……
自定义函数之字符串连接
摘要:解题思路:定义三个数组,两个数组存放输入的数组,最后一个数组存放最终的数组注意事项:利用string函数库中strlen函数计算出个数组中的元素个数参考代码:# include <stdio.h># ……
蓝桥杯算法提高VIP-打水问题
摘要:解题思路:注意事项:参考代码:import java.util.Arrays;
import java.util.Scanner;
public class Main {
publi……
编写题解 1169: 绝对值排序—比较简单的方法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<math.h>
int main()
{
int n,i,j,a[100];
while(……
利用sort巧妙解。
摘要:解题思路: 利用sort解题注意事项: 注意sort的用法参考代码:#include<bits/stdc++.h>
using namespace std;
typedef struc……
Minesweeper(c语言) - 代码很简单, 无需动脑
摘要:一遍写完,没做优化,跟着代码走读就能理解参考代码:#include <stdio.h>
void InitBoard(char board[100][100], int row, int col)
……