变量定义赋值及转换--4.类型转换1 摘要:解题思路:%d说明a,b是整型,只有C、D是整形;所占空间字节大小:short int=2字节,16位,数值范围:-32768~32767int=4字节,32位,数值范围:-2147483648~21…… 题解列表 2023年03月23日 2 点赞 1 评论 1282 浏览 评分:8.0
编写题解 2781: 奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a; scanf("%c",&a); if(a%2==0){ prin…… 题解列表 2023年03月24日 0 点赞 0 评论 369 浏览 评分:8.0
矩阵交换行c++题解 摘要:解题思路:按吧按吧按吧按吧按吧按吧按吧按吧按吧注意事项:啥也没有参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[6]…… 题解列表 2023年03月25日 0 点赞 0 评论 321 浏览 评分:8.0
该题第一个py代码AC 摘要:解题思路:注意事项:最后一个用例是1到1需要特判一下,不特判的话输出是负值。一道简单的dijkstra板子题参考代码:n,m=map(int,input().split())t=[0]+list(ma…… 题解列表 2023年03月27日 0 点赞 0 评论 412 浏览 评分:8.0
C语言的密码破译通解 摘要:解题思路:利用ASCII码来计算注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char* s…… 题解列表 2023年03月28日 0 点赞 0 评论 306 浏览 评分:8.0
字符個數統計c語言 摘要:解题思路:需要調用函數,而且此函數還需給出4個統計值,故需要使用指針,函數只能返回0個或一個值注意事项:参考代码:#include<stdio.h> void cnt_fun(char total[]…… 题解列表 2023年03月29日 0 点赞 0 评论 236 浏览 评分:8.0
给用Java的开一下荒土 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2023年03月31日 0 点赞 0 评论 502 浏览 评分:8.0
一种可借鉴的麻烦方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ return a>b?a:b;}int fun(int *a,int *b,int c…… 题解列表 2023年04月01日 0 点赞 0 评论 665 浏览 评分:8.0
一种可借鉴的麻烦方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int t, n, m, i, j, x, y; scanf("%d",&t); for(…… 题解列表 2023年04月01日 0 点赞 0 评论 428 浏览 评分:8.0
[编程入门]宏定义练习之三角形面积_C++超简单版!!! 摘要:C++输出三位有效数字需要```cpp #include ```头文件 //其基本格式为 cout b >> c; cout …… 题解列表 2023年04月05日 0 点赞 0 评论 359 浏览 评分:8.0