摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cmath> 4 5 void betAns(char c[], int n,int index); 6 int main() { 7 //std::cout << "Hello, World 阅读全文
posted @ 2020-11-11 21:10 ethon-wang 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <cstring> #include <cctype> #include <algorithm> using namespace std; typedef long long LL; struct bign { int len; int d[30 阅读全文
posted @ 2020-11-06 13:04 ethon-wang 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> struct node {//链表结点类型,包含一个存放整型数据的 data 成员,和一个指向下一个结点的next成员 int data ; struct node *next ; }; struct node *mycr 阅读全文
posted @ 2020-11-01 17:11 ethon-wang 阅读(958) 评论(0) 推荐(1) 编辑
摘要: #include <stdio.h> #include <math.h> int reverse(int data) { //请在此填写代码,实现将参数data的值反转,并返回的功能 /* begin */ int ans=0,cnt=0,a[1000],flag=0; if(data<0){ fl 阅读全文
posted @ 2020-10-31 17:21 ethon-wang 阅读(217) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include<string.h> #include<stdlib.h> //第一关代码 struct node {//此处填写代码,定义链表结点类型,包含一个存放整型数据的 成员,和一个指向下一个结点的成员 int data; struct node* ne 阅读全文
posted @ 2020-10-30 20:37 ethon-wang 阅读(443) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/a845717607/article/details/86530433 map使用: 声明:map<键,值> 变量名; 存储: scanf("%d %lf",&e,&coe); mp1[e]=coe; 遍历:for(map<int,double>::ite 阅读全文
posted @ 2020-10-30 17:23 ethon-wang 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstdio> #include <cstring> int main() { //std::cout << "Hello, World!" << std::endl; int n , tmp=0, floor,ans=0; scanf(" 阅读全文
posted @ 2020-10-28 21:28 ethon-wang 阅读(93) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstdio> #include <cstring> const int maxn = 10050; struct node { int start,end; int sum; int value; }dp[maxn]; int main( 阅读全文
posted @ 2020-10-27 16:58 ethon-wang 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 const int maxn = 110; 5 bool compare(int a[],int b[]){//a小于b返回真,否则返回假 6 if(a[0]!=b[0] 阅读全文
posted @ 2020-10-26 22:58 ethon-wang 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 //第一关代码 4 typedef int DataType; 5 typedef struct node * PNode; 6 struct node 7 {//此处填写代码,定义链表结点类型,包含一个存放整 阅读全文
posted @ 2020-10-16 12:50 ethon-wang 阅读(618) 评论(1) 推荐(2) 编辑