题解列表

筛选

变量定义赋值及转换--4.类型转换1

摘要:解题思路:%d说明a,b是整型,只有C、D是整形;所占空间字节大小:short int=2字节,16位,数值范围:-32768~32767int=4字节,32位,数值范围:-2147483648~21……

编写题解 2781: 奇偶ASCII值判断

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a;    scanf("%c",&a);    if(a%2==0){        prin……

矩阵交换行c++题解

摘要:解题思路:按吧按吧按吧按吧按吧按吧按吧按吧按吧注意事项:啥也没有参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[6]……

该题第一个py代码AC

摘要:解题思路:注意事项:最后一个用例是1到1需要特判一下,不特判的话输出是负值。一道简单的dijkstra板子题参考代码:n,m=map(int,input().split())t=[0]+list(ma……

C语言的密码破译通解

摘要:解题思路:利用ASCII码来计算注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){    char* s……

字符個數統計c語言

摘要:解题思路:需要調用函數,而且此函數還需給出4個統計值,故需要使用指針,函數只能返回0個或一個值注意事项:参考代码:#include<stdio.h> void cnt_fun(char total[]……

给用Java的开一下荒土

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a……

一种可借鉴的麻烦方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){    return a>b?a:b;}int fun(int *a,int *b,int c……

一种可借鉴的麻烦方法

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int t, n, m, i,  j, x, y;    scanf("%d",&t);    for(……