摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); String s = cin.nextLine(); int x = cin.nextIn... 阅读全文
posted @ 2019-01-22 23:10 Youpeng 阅读(1768) 评论(0) 推荐(0) 编辑
摘要: 1. Ubuntu 查看当前系统版本: 2. Ubuntu 更新系统版本的命令: 阅读全文
posted @ 2019-01-22 21:52 Youpeng 阅读(3134) 评论(0) 推荐(0) 编辑
摘要: 棋盘问题 Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数 阅读全文
posted @ 2019-01-22 21:47 Youpeng 阅读(279) 评论(0) 推荐(0) 编辑
摘要: Lake Counting Description Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M 阅读全文
posted @ 2019-01-22 21:37 Youpeng 阅读(305) 评论(0) 推荐(0) 编辑