题解列表
运用移位运算将更相减损术与移位结合(stein算法)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int gcd(int a,int b){
if(a<b){
a=a^b;
b=a^b;
……
c代码记录之结构体成绩统计
摘要:第一次练习结构体,略显生涩
#include
struct student{
char xuehao[10],name[10];
int a,b……
c代码记录之结构体时间设计
摘要: #include
struct Time{
int year,month,day;
}_time;
int main(){
s……
c代码记录之结构体成绩记录--函数传参
摘要: #include
struct Student{
char xuehao[30],name[30];
int a,b,c;
};
……
2913: 整数去重
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=20010;int a[N];int main() { ……
题解 2852: 配对碱基链
摘要: #include
using namespace std;
char a[256];
int main(){
cin>>a;
int q=……
题解 2854: 密码翻译
摘要: #include
using namespace std;
char a[256],b;
string w;
int main(){
……