自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(170)
  • 收藏
  • 关注

原创 C语言网 题库

C语言训练1125 C语言训练-委派任务* 1126 C语言训练-字符串正反连接 1127 C语言训练-尼科彻斯定理 1128 C语言训练-排序问题<1> 1129 C语言训练-排序问题<2> 1130 C语言训练-数字母 1131 C语言训练-斐波纳契数列 1132 C语言训练-最大数问题 1133 C语言训练-求1+2!+3!+…+N!的和 1134 C语言训练-求PI* 1135 C语言训练-求s=a+aa+aaa+aaaa+aa…

2021-10-16 13:00:39 13259

转载 PAT 乙级

PAT (Basic Level) Practice1001 害死人不偿命的 (3n+1) 猜想 1002 写出这个数 1003 我要通过! 1004 成绩排名1005 继续 (3n+1) 猜想 1006 换个格式输出整数 1007 素数对猜想 1008 数组元素循环右移问题 1009 说反话 1010 一元多项式求导1011 A+B 和 C 1012 数字分类 1013 数素数1014 福尔摩斯的约会1015 德才论1016 部分 A+B 1017 A 除以 B1018

2021-04-23 13:30:55 240

转载 GPLT(待补)

GPLTL1-001 Hello World L1-002 打印沙漏L1-003 个位数统计 L1-004 计算摄氏温度 L1-005 考试座位号 L1-006 连续因子 L1-007 念数字 L1-008 求整数段和 L1-009 N 个数求和 L1-010 比较大小 L1-011 A-B L1-012 计算指数 L1-013 计算阶乘和 L1-014 简单题 L1-015 跟奥巴马一起画方块 L1-016 查验身份证 L1-017 到底有多二 L1-018 大笨钟

2021-04-22 21:14:38 542 2

原创 C语言答疑: 习题讲解 阶乘数列求和

C语言答疑

2022-10-10 18:49:21 657 2

原创 C语言答疑: 习题讲解判断偶数并求和

IMUT 22电子通信 C语言答疑

2022-10-10 16:59:07 390

原创 C语言答疑:习题讲解 判断奇数并求和

IMUT习题讲解

2022-10-10 16:56:51 380

原创 C语言答疑: 习题讲解 王奶奶分茶叶蛋

C语言答疑

2022-10-09 19:06:41 375

原创 C语言答疑: 习题讲解 最大公约数

C语言答疑

2022-10-09 19:03:34 165

原创 [C语言答疑]:习题讲解 char与unsigned char的数据范围

char与unsigned char的范围

2022-10-08 12:12:33 353

原创 CodeForces 目录

Codeforces 个人题解目录CLine EmpireCodeforces Round #783 (Div. 2)ADirection ChangeBSocial Distance

2022-04-20 21:34:47 180

原创 Line Empire

题目Codeforces Round #782 (Div. 2)题解#include<iostream>#include<cstdio>#include<vector>using namespace std;int main(void){ #define int long long int int t; scanf("%lld",&t); while(t--){ int n,a,b; scanf("%lld %lld %lld"

2022-04-20 21:33:14 361

原创 Social Distance

题目Codeforces Round #783 (Div. 2)题解#include<iostream>#include<vector>#include<algorithm>using namespace std;int cmp(int a,int b){ return a>b;}bool solve(int n,int m){ int a[100005]; for(int i=0;i<n;i++) cin >&gt

2022-04-20 21:31:25 281

原创 Direction Change

题目Codeforces Round #783 (Div. 2)题解#include<iostream>#include<algorithm>using namespace std;long long solve(long long n,long long m){ long long ans = min(m,n),dx = abs(m-n); ans = 2*(ans-1); if(dx%2) ans += (dx/2)*4+1;

2022-04-20 21:24:47 323

原创 吉老师的回归[GPLT]

题目团体程序设计天梯赛题解#include<iostream>#include<string>using namespace std;int N,M;int main(){ cin >> N >> M;getchar(); while(N--){ string s; getline(cin,s); if(s.find("qiandao")!=-1||s.find("easy"

2022-04-16 21:10:35 599

原创 单链表存储一元多项式[IMUT 数据结构实验]

题目【问题描述】利用单链表存储一元多项式。【基本要求】实现以下基本操作:(1)从键盘输入一元多项式的信息,建立一元多项式。(2)实现两个一元多项式相加,并输出和多项式。分析实现一个多项式类分类讨论多项式相加的情况实现多项式相加函数题解#include<stdio.h>#include<stdlib.h>const int N = 10e4;typedef struct node{ double coefficient; int index; s

2022-03-26 21:49:42 3253

原创 基于双链表的双向栈(C语言近似实现C++的类)

#include<stdio.h>#include<stdlib.h>typedef struct node{ int data; struct node *pre; struct node *next;}node;typedef struct stack{ int size; node* l_top; node* l_end; node* r_top; node* r_end; void (*stack_add_size)(struct stack *

2022-03-23 16:27:10 1495

原创 小赌怡情[PAT 乙级]

题源PTA 乙级题解#include<stdio.h>int T,K;int n1,b,t,n2;int main(){ scanf("%d %d",&T,&K); int i = 0; for(i = 0;i < K;i++){ scanf("%d %d %d %d",&n1,&b,&t,&n2); if(t>T){printf("Not enough tokens.

2022-03-22 10:16:23 298

原创 内蒙古工业大学2022年数据结构习题集

顺序表的插入题目合肥师范学院 陈皓题解bool ListInsert(SqList &L,int i,ElemType e){ int j; if(i<1||L.length+1<i) { cout<<"Insert position error!" ; return false; } if( L.length==MAXSIZE ) { cout<&lt

2022-03-22 10:01:35 1901

原创 L1-025 正整数A+B (GPLT)

题目团体程序设计天梯赛题解#include<iostream>#include<cstdio>#include<string>using namespace std;int is_num(string x){ if(x[0]=='0')return 0; int sum = 0; for(auto c:x){ if('0'<=c&&c<='9'){ sum = s

2022-03-20 21:24:34 467

原创 哲哲打游戏

题目GPLT题解#include<iostream>#include<vector>using namespace std;vector<vector<int>>chapter;int save[100];int main(){ int N,M; cin >> N >> M; while(N--){ int K; cin >> K;

2022-03-14 20:45:43 4757

原创 计算1977!

题目题目 1148: C语言训练-计算1977!*题解#include<stdio.h>int main(){ printf("44885501861451087214610857079909248837424492260428166724654147729643971700105425720084828218702600864349140553199425461195269756193449196420567670679997930497776962868627670814

2021-10-16 13:05:05 425 5

原创 角谷猜想

题目题目 1147: C语言训练-角谷猜想题解#include <stdio.h>int main(void){ int num; scanf("%d",&num); while(num!=1){ if(num%2){ printf("%d*3+1=",num); num = num*3+1; printf("%d\n",num); }else{ printf("%d/2=",num); num = num/2; printf(

2021-10-16 13:02:33 205

原创 A 除以 B

题源团体程序设计天梯赛题解#include<stdio.h>float A,B;int main(){ scanf("%f %f",&A,&B); printf("%.0f",A); printf("/"); if(B<0)printf("(%.0f)",B); else printf("%.0f",B); printf("="); if(B==0)printf("Error"); else prin

2021-05-10 21:14:22 149

原创 到底是不是太胖了

题源团体程序设计天梯赛题解#include<iostream>#include<cmath>using namespace std;int N;double H,rW,sW;int main(){ cin >> N; while(N--){ cin >> H >> rW; sw = (H-100)*0.9; rW /= 2; if( fabs(rW-sw

2021-05-10 19:47:20 184

原创 后天[GPLT]

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int D;int main(){ cin >> D; cout << (D+8)%7+1; return 0;}

2021-05-10 18:56:06 118

原创 念数字[GPLT]

题源团体程序设计天梯赛题解因为负号的ASCII码是45,数字0的ASCII码是48所以"fu"和"ling"直接间隔两个空字符串#include<iostream>#include<string>using namespace std;string number[13]={"fu","","","ling","yi","er","san","si","wu","liu","qi","ba","jiu"};string str;int main(){ cin

2021-05-08 20:46:57 743

原创 求整数段和

题源团体程序设计天梯赛题解#include<iostream>#include<iomanip>using namespace std;int A,B;int main(){ cin >> A >> B; for(int i=A;i<=B;i++){ cout << setw(5) << i; if((i-A+1)%5==0)cout << endl;

2021-05-08 20:24:12 107

原创 奇偶分家

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int N,num,zero=0,one=0;int main(){ cin >> N; for(int i=0;i<N;i++){ cin >> num; if(num%2)one++; else zero++; } cout << one << "

2021-05-08 20:21:57 118

原创 大笨钟

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int hh,mm;int main(){ scanf("%d:%d",&hh,&mm); if(0<=hh&&hh<=12){ printf("Only %02d:%02d. Too early to Dang.",hh,mm); return 0; } for(int i

2021-05-08 20:21:12 106

原创 洛希极限

题源团体程序设计天梯赛题解#include<iostream>using namespace std;float a,b[2]={2.455,1.26},c;int i;int main(){ cin >>a>>i>>c; if(a*b[i]>c)printf("%.2f T_T",a*b[i]); else printf("%.2f ^_^",a*b[i]); return 0;}...

2021-05-03 15:24:41 788

原创 天梯赛的善良

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int box[1000001]={0};int N,num;int main(){ cin >> N; for(int i=0;i<N;i++){ cin >> num; box[num]++; } for(long i=0;i<=1000000;i++){

2021-05-02 16:50:01 420

原创 大笨钟的心情

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int BigBen[24];int main(){ for(int i=0;i<24;i++)cin >> BigBen[i]; for(int time;;){ cin >> time; if(0<=time&&time<=23){ cout <

2021-05-02 16:49:27 720

原创 强迫症

题源团体程序设计天梯赛题解#include<iostream>#include<string>using namespace std;string str;int main(){ cin >> str; if(str.size()==4){ int a = (str[0]-'0')*10+str[1]-'0'; if(a<22)str.insert(0,"20"); else str.in

2021-05-02 16:48:56 914

原创 降价提醒机器人

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int N,M;float P;int main(){ cin >> N >> M; for(int i = 0;i < N;i++){ cin >> P; if(P<M)printf("On Sale! %.1f\n",P); } return 0;}...

2021-05-02 16:48:25 862

原创 嫑废话上代码

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int main(){ cout << "Talk is cheap. Show me the code."; return 0;}

2021-05-01 10:46:04 209

原创 两小时学完 C 语言

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int N,K,M;int main(){ cin >> N >> K >> M; cout << N-K*M; return 0;}

2021-05-01 10:45:31 881

原创 人与神

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int main(){ cout << "To iterate is human, to recurse divine."; return 0;}

2021-05-01 10:43:07 139

原创 心理阴影面积

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int x,y;int main(){ cin >> x >> y; cout << 50*(x-y); return 0;}

2021-05-01 09:39:48 270

原创 打折

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int a,b;int main(){ scanf("%d %d",&a,&b); printf("%.2f",0.1*b*a); return 0;}

2021-04-30 20:21:11 128 1

原创 新世界

题源团体程序设计天梯赛题解#include<iostream>using namespace std;int main(){ cout << "Hello World" << endl; cout << "Hello New World" << endl; return 0;}

2021-04-30 19:50:22 223 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除