2018年8月19日

CCF-201712-4-行车路线-JAVA

摘要: https://www.cnblogs.com/goldlone/p/7979768.html https://www.cnblogs.com/bnpop/p/8549124.html 问题描述 小明和小芳出去乡村玩,小明负责开车,小芳来导航。 小芳将可能的道路分为大道和小道。大道比较好走,每走1公 阅读全文

posted @ 2018-08-19 21:21 NEU-2015 阅读(487) 评论(1) 推荐(0) 编辑

2018年8月9日

CCF-201712-2-游戏

摘要: 问题描述 有n个小朋友围成一圈玩游戏,小朋友从1至n编号,2号小朋友坐在1号小朋友的顺时针方向,3号小朋友坐在2号小朋友的顺时针方向,……,1号小朋友坐在n号小朋友的顺时针方向。 游戏开始,从1号小朋友开始顺时针报数,接下来每个小朋友的报数是上一个小朋友报的数加1。若一个小朋友报的数为k的倍数或其末 阅读全文

posted @ 2018-08-09 11:09 NEU-2015 阅读(169) 评论(0) 推荐(0) 编辑

2018年8月8日

CCF-201712-1-最小差值

摘要: 问题描述 给定n个数,请找出其中相差(差的绝对值)最小的两个数,输出它们的差值的绝对值。 输入格式 输入第一行包含一个整数n。 第二行包含n个正整数,相邻整数之间使用一个空格分隔。 输出格式 输出一个整数,表示答案。 样例输入 5 1 5 4 8 20 样例输出 1 样例说明 相差最小的两个数是5和 阅读全文

posted @ 2018-08-08 19:45 NEU-2015 阅读(190) 评论(0) 推荐(0) 编辑

CCF-201803-4-棋局评估

摘要: import java.util.Scanner; public class Main { private static Scanner in = new Scanner(System.in); public static void main(String[] args) { int T; while (in.hasNext()) { ... 阅读全文

posted @ 2018-08-08 14:57 NEU-2015 阅读(937) 评论(0) 推荐(0) 编辑

2018年8月7日

CCF-201803-3-URL映射

摘要: import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { private static List ans = new ArrayList(); public static void main(String[] args) { ... 阅读全文

posted @ 2018-08-07 21:28 NEU-2015 阅读(846) 评论(0) 推荐(0) 编辑

2018年7月18日

CCF-201803-1-跳一跳

摘要: 问题描述 近来,跳一跳这款小游戏风靡全国,受到不少玩家的喜爱。 简化后的跳一跳规则如下:玩家每次从当前方块跳到下一个方块,如果没有跳到下一个方块上则游戏结束。 如果跳到了方块上,但没有跳到方块的中心则获得1分;跳到方块中心时,若上一次的得分为1分或这是本局游戏的第一次跳跃则此次得分为2分,否则此次得 阅读全文

posted @ 2018-07-18 21:57 NEU-2015 阅读(178) 评论(0) 推荐(0) 编辑

2018年6月19日

机器学习实战-第二章代码+注释-KNN

摘要: #-*- coding:utf-8 -*- #https://blog.csdn.net/fenfenmiao/article/details/52165472 from numpy import * #科学计算包 import operator #运算符模块 import matplotlib import matplotlib.pyplot as plt #matplotlib.pyplo... 阅读全文

posted @ 2018-06-19 21:19 NEU-2015 阅读(532) 评论(0) 推荐(0) 编辑

2018年2月4日

ZOJ Problem Set - 1007 - Numerical Summation of a Series

摘要: public class Main { public static void main(String[] args) { double x = 0.000; double sum, k; for(int i = 1; i <= 2001; i++) { sum = 0.000; for(... 阅读全文

posted @ 2018-02-04 22:05 NEU-2015 阅读(133) 评论(0) 推荐(0) 编辑

ZOJ Problem Set - 1006 - Do the Untwist

摘要: import java.util.Scanner; public class Main { private static char[] array = new char[] { '_', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',  阅读全文

posted @ 2018-02-04 21:24 NEU-2015 阅读(105) 评论(0) 推荐(0) 编辑

2018年2月3日

ZOJ Problem Set - 1005 - Jugs

摘要: https://www.cnblogs.com/devymex/archive/2010/08/04/1792288.html 阅读全文

posted @ 2018-02-03 22:20 NEU-2015 阅读(76) 评论(0) 推荐(0) 编辑

导航