OpenJudge
孙小小子
LeetCode 刷题 https://github.com/syt798/LeetCode
展开
-
初始
最近又重新拾起C来学习,发现之前学习的东西都忘的一干二净了,不得不找书重新学习,在看书的时候,可能是不太习惯只看书式的学习,想起来大一时做的OpenJudge,不能总是纸上谈兵,动手写程序才能进步的快一些,所以决定把写的程序放在这留个纪念。原创 2016-01-25 09:52:13 · 300 阅读 · 0 评论 -
山东农业大学/基础训练10
/*Namec: base_10.cPurpose: 数组逆序重放 Author: sytDate: 2016_01_25*/#includeint main(){ int n, i, temp; scanf("%d", &n); int arr[n]; for(i = 0; i scanf("%d", &原创 2016-01-28 11:12:19 · 428 阅读 · 0 评论 -
山东农业大学/基础训练9
/*Namec: base_9.cPurpose: 打印完数 Author: sytDate: 2016_01_25*/#includeint main(){ int i, sum = 0, k = 0, j; int factors[50] = {0}; for(i = 1; i { for(j = 1;原创 2016-01-28 11:10:59 · 1002 阅读 · 0 评论 -
山东农业大学/基础训练8
/*Namec: base_8.cPurpose: 求阶乘的和 Author: sytDate: 2016_01_25*/#includeint main(){ int n, i, j, total = 0, temp = 1; scanf("%d", &n); for(i = 1; i {原创 2016-01-28 11:10:04 · 659 阅读 · 0 评论 -
山东农业大学/基础训练7
/*Namec: base_7.cPurpose: 求分数序列和 Author: sytDate: 2016_01_25*/#includeint main(){ int n, k; double total = 0, j = 2.0, i = 1.0, temp; scanf("%d", &n); for(k = 0; k原创 2016-01-25 17:07:44 · 643 阅读 · 0 评论 -
山东农业大学/基础训练6
/*Namec: base_6.cPurpose: 化验诊断Author: sytDate: 2016_01_23*/#include#includeint get_res(char *sex){ float data[5]; int count = 0; int i; for(i = 0; i {原创 2016-01-25 17:05:12 · 478 阅读 · 0 评论 -
山东农业大学/基础训练5
/*Namec: base_5.cPurpose: 整数的立方和Author: sytDate: 2016_01_23*/ #includeint main(){ int k, i; scanf("%d", &k); int sum = 0; for(i = 1; i { sum = sum原创 2016-01-25 17:03:43 · 865 阅读 · 0 评论 -
山东农业大学/基础训练4
/*Namec: base_4.cPurpose: 整数的个数Author: sytDate: 2016_01_23*/#includeint main(){ int k, i; scanf("%d", &k); int p[k]; int num_one = 0, num_five = 0, num_ten = 0;原创 2016-01-25 17:02:58 · 638 阅读 · 0 评论 -
山东农业大学/基础训练3
/*Namec: base_3.cPurpose: 计算书费Author: sytDate: 2016_01_22*/#include#includeint main(){ int k, i, j, t; float sum = 0; scanf("%d", &k); float * res = (floa原创 2016-01-25 17:02:16 · 619 阅读 · 0 评论 -
山东农业大学/基础训练2
/*Namec: base_2.cPurpose: 第一个C++程序Author: sytDate: 2016_01_22*/#includeint main(){ printf("Welcome to C++!"); return 0;}原创 2016-01-25 17:01:23 · 1200 阅读 · 0 评论 -
山东农业大学/基础练习题1
/*Namec: base_1.cPurpose: A+B ProblemAuthor: sytDate: 2016_01_22*/#includeint main(){ int a, b; scanf("%d %d", &a, &b); printf("%d\n", a + b); return 0;}原创 2016-01-25 09:54:46 · 767 阅读 · 0 评论 -
山东农业大学/基础训练11
/*Namec: base_11.cPurpose: 与7无关的数 Author: sytDate: 2016_01_25*/#includeint main() { int n, i, sum = 0; scanf("%d", &n); for(i = 1; i { if((i % 7) != 0 &&原创 2016-01-28 11:13:12 · 954 阅读 · 0 评论