题解列表
信息学奥赛一本通T1498-Roadblocks(最短路径算法Dijkstra)
摘要:解题思路:思路在代码中,很清晰的.注意事项:求的是农场 1到农场 4的第二短的路径(路径里一定要有农场 1和农场 4).参考代码:import java.util.ArrayList;
import……
海绵宝宝来学C~题解 1008: [编程入门]成绩评定
摘要:#####解题思路:
看题目就是循环判断了,
那我们可以用基本几个 if-else,switch,等等的循环判断函数去答题
######if-else代码解法:
```c
#includ……
运用移位运算将更相减损术与移位结合(stein算法)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int gcd(int a,int b){
if(a<b){
a=a^b;
b=a^b;
……
1508: 蓝桥杯算法提高VIP-和最大子序列
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long int n,a[1000000],i,sum=0,max=0; scanf("%lld",……
题解 2851: 合法C标识符
摘要: #include
using namespace std;
int n;
char a[200],m[200];
int main() {
……
题解 2876: 矩阵交换行
摘要: #include
using namespace std;
int n,m;
int a[6][6];
int main(){
for(in……
题解 2848: 基因相关性
摘要: #include
using namespace std;
int e;
double c,z;
char a[510],b[510];
in……