- 博客(8)
- 收藏
- 关注
原创 1088 三人行 C语言 pat乙级
1.测试点4错误版:丙的分数可能是浮点数,没有考虑到这一点甚至还限制了整除的我qaq。而且将甲乙的分数用两个参数表示,逻辑上没问题,但有两层循环。 #include <stdio.h> #include <stdlib.h> #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int
2020-06-25 01:02:34 175
原创 1017 A除以B (20分)C语言 pat乙级
#include <stdio.h> #include <stdlib.h> #include <string.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { char str[1001]; int d,Q,R,len,i; if(sc
2020-06-24 13:24:13 109
原创 1016 部分A+B (15分) C语言 pat乙级
#include <stdio.h> #include <stdlib.h> #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int cul(int num,int d){ int i,count; count = 0; while(num!=0){ if(num ==
2020-06-24 00:37:06 171
原创 1013 数素数 (20分) C语言 pat乙级
#include <stdio.h> #include <stdlib.h> #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int isprime(int num){ int i; if(num == 2) return 1; for(i = 2;i <= sq
2020-06-23 23:38:48 108
原创 1012 数字分类 C语言 PAT乙级
#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int n,count,i,max,temp; int a[5]={0},b[5]={0}; count = 0; int k
2020-06-23 21:57:18 98
原创 201912-1 报数 csp C语言
#include <stdio.h> int main() { int i,n; int count[4] = {0}; scanf("%d",&n); for(i = 1;i <= n;i++){ if(i%7 ==0 || i%10 ==7 ||i/10%10 ==7||i/100==7){ if(i%4 == 0){ count[3]++;
2020-06-12 14:33:22 190
原创 201912-2 csp回收站管理 C语言
#include <stdio.h> int main() { int n,i,j,count; long int loc[1000][2]={0}; int cho[1000] = {0}; //int score = 0; int cout[5] = {0}; scanf("%d",&n); for(i = 0;i <= n;i++){ scanf("%ld %ld",&loc[i][0],&am
2020-06-12 12:02:15 166
原创 javaweb部署到轻量应用服务器遇到的问题及解决
阿里云轻量应用服务器部署中走的弯路@TOC 将Javaweb项目部署到轻量应用服务器所遇到的问题及解决 这周老师布置的任务是将javaweb项目部署到云服务器,刚开始接触这些,还没有系统学过Linux系统及相关的操作命令,操作教程基本都是百度的。折腾了好久终于部署上了。现在总结一下遇到的问题吧。刚开始学习,希望大家多多交流~ MySQL,jdk和Tomcat的安装 1.安装过程 刚开始发现大部分教...
2018-12-22 17:17:04 694
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人