题解列表

筛选

认真看,其实很简单

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

[编程入门]密码破译

摘要:解题思路:输出变量加4再以字符输出注意事项:参考代码:/*要将"China"译成密码,译码规律是:用原来字母后面的第4个字母代替原来的字母.例如,字母"A"后面第4个字母是"E"."E"代替"A"。因……

printf基础练习2

解题思路:八进制以0开头十六进制以0x开头注意事项:注意前缀和数值之间的空格参考代码:/*输出这个整数的八进制、十进制和十六进制,三个数字用空格分开,最后一个有换行不要忘记八进制和十六进制的前缀哦~*/#includeintmain(){intnum;//printf("请输入数值:

模拟计算器

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){     int a,b;     char c;     ……

编写题解 2788: 晶晶赴约会

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a;    cin>>a;    if(a!……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int n, a[3001],i,b[3001],k=0,j;    sc……

炒鸡简单(易懂)

摘要:解题思路:定义另一个数组来存放该数组的元音并输出注意事项:参考代码:#include<stdio.h>void line(char a[100]){    char b[100];    int i,……

编写题解 2920: 分数线划定

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct xs { int id; int mark;};struct xs x[5001];struct xs t;int mai……

c语言代码解决问题

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