
技术
xsmpython
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
好友推荐
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); while(scan.hasNext()){ int p = scan.nextInt();//好友推荐阈值; int m = scan.nex原创 2016-09-11 08:51:59 · 561 阅读 · 0 评论 -
奇数位按升序排序,偶数位按降序排序
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); while(scan.hasNext()){ String str = scan.nextLine(); sort(str); } scan.close(原创 2016-09-11 08:52:51 · 6061 阅读 · 0 评论 -
挑水
import java.util.*; public class Arrange { static int M[][] = new int[8][8]; static int sum = 0; static ArrayList<Integer> allArranges = new ArrayList<>();//用来存储所有安排方案 stati原创 2016-09-11 08:45:00 · 321 阅读 · 0 评论 -
鸽子兔子
//就是大数的处理,java的话就很简单了 /*x+y=n 2x+4y=m y=(m-2n)/2=0.5m-n x=2n-0.5m*/ #include<iostream> using namespace std; //求大数的一半 string half(string s){ int borrow=0; int len=s.length(); string ret(len原创 2016-09-11 09:21:12 · 591 阅读 · 0 评论 -
剩余文件数目
import java.util.*;public class Main{ public static void main(String args[]){ Scanner cin = new Scanner(System.in); List needOperation=new ArrayList(); while (cin.hasNext()){ String temp=cin.next转载 2016-09-11 15:57:49 · 254 阅读 · 0 评论 -
Gao次Fang
#include int main() { int i,x,y,last=1; /*变量last保存求X的Y次方过程中的部分乘积的后三位*/ scanf("%d%d",&x,&y); for(i=1;i last=last*x%1000; /*将last乘X后对1000取模,即求积的后三位*/ if (last%1000 { printf("0%d",last%1原创 2016-09-11 15:55:32 · 444 阅读 · 0 评论 -
简单密码
他是这么变换的,大家都知道手机上的字母: 1--1, abc--2, def--3, ghi--4, jkl--5, mno--6, pqrs--7, tuv--8 wxyz--9, 0--0,就这么简单,渊子把密码中出现的小写字母都变成对应的数字,数字和其他的符号都不做变换, 声明:密码中没有空格,而密码中出现的大写字母则变成小写之后往后移一位,如:X,先变成小写,再往后移一位,转载 2016-09-11 17:12:15 · 1725 阅读 · 0 评论 -
洞穴逃生
结构体初始化 操作系统任务调度问题 一左一右排序 数数出列 【华为上机】最具夫妻相 华为上机【洞穴逃生】 http://blog.youkuaiyun.com/xvwentao89?viewmode=contents 华为机试—掷骰子游戏 2015-06-29 17:29 阅读(608) 评论(转载 2016-09-11 17:50:37 · 471 阅读 · 0 评论