题解列表
交换 a b 的值(不增加新的变量)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d", &a, &b); a=a^b; b=a^b……
1043: [编程入门]三个数字的排序
摘要:解题思路:哔哔哔注意事项:bibibi参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,x1,x2,x3,x4; ……
向量点积计算(建立结构体)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct xy{ int a; int b;}spot[1000];int main(){ int n,sum=0; scanf("……
找第一个只出现一次的字符(代码简短)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,count[26]={0}; char str[100000]; gets(str); f……
<函数>分段函数求值(C语言)
摘要:#include<stdio.h>
int Fun(int x)
{
int y = 0;
if (x < 1)
{
y = x;
}
else if (x >= 1 &……