习题 1-1 请将下列公式翻译成表达式 3x + 5y $ \frac{c+1}{ab} $ $ \sqrt{3a^3}$ (n+2)(n-9) #include<iostream> #include<cmath> using namespace std; int main() { int x=1, ...
分类:
其他好文 时间:
2021-04-12 12:53:21
阅读次数:
0
GDB 是我们平时调试 c/c++程序的利器, 查起复杂的 bug 问题,比打印大法要好的多,但是也不得不说, gdb 在默认情况下用起来并不是很好用,最近学习到几个高级点的技巧,分享下: 一 美化打印 先上个例子: #include <stdio.h>typedef struct { int i ...
分类:
数据库 时间:
2021-04-12 12:47:30
阅读次数:
0
7)错误票据 解题思路:考察的是在不知数据个数的前提下存储一个数组的方法,这里可以采用sstream库的优势,进行巧妙地转化,进而解决此题。 #include <iostream> #include <sstream> using namespace std; const int maxn = 10 ...
分类:
其他好文 时间:
2021-04-12 12:46:54
阅读次数:
0
本场链接:Codeforces Round #713 (Div. 3) A. Spy Detected! #include <bits/stdc++.h> using namespace std; typedef long long ll; #define forn(i,x,n) for(int i ...
分类:
其他好文 时间:
2021-04-12 12:42:16
阅读次数:
0
1二分图最大匹配 在一张二分图中选出最多的边,使得边两两不相交。 2求解 2.1匈牙利算法 即不断地尝试匹配,有人抢就放弃的算法。 #include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<cst ...
分类:
其他好文 时间:
2021-04-12 12:41:05
阅读次数:
0
<用例视图> 1 用例图的目标 who「参与者」:确定谁要使用系统 what「功能」:他们使用系统做什么? 2 用例图-四大主要组件 2.1 参与者 参与者:与应用程序或系统进行交互的用户、组织或外部系统。用一个小人表示。 2.2 用例 用例:用例就是外部可见的系统功能,对系统提供的服务进行描述。用 ...
分类:
其他好文 时间:
2021-04-12 12:39:49
阅读次数:
0
原题链接 题解:注意建立边 代码: #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; const int N = 5e3 + 9; const int M ...
分类:
其他好文 时间:
2021-04-12 12:34:29
阅读次数:
0
解题思路:抓取非空格的元素对数组从头开始覆盖重写 1 #include<stdio.h> 2 int main() 3 { 4 char str[100]; 5 char *ch,*p; 6 p=ch=str; //一个指针进行重写 一个指针负责抓取非空格字符 7 gets(str); 8 whil ...
分类:
其他好文 时间:
2021-04-12 12:30:33
阅读次数:
0
1 #include<stdio.h> 2 int main() 3 { 4 float num; 5 int temp; 6 scanf("%f",&num); 7 temp=num*100+0.5; 8 num=(double)temp/100; 9 printf("%f",num); //不同 ...
分类:
其他好文 时间:
2021-04-12 12:28:11
阅读次数:
0
又是该LL用int了,什么时候才能不犯病啊。 A:水题,让你找出3个以上的数组中不同的那个数 我是直接分情况。 1 #include<iostream> 2 #include<vector> 3 using namespace std; 4 const int N=110; 5 int a[N]; ...
分类:
其他好文 时间:
2021-04-12 12:25:31
阅读次数:
0