码迷,mamicode.com
首页 >  
搜索关键字:nyoj 714 card trick    ( 3985个结果
Ubuntu desktop installation problem and solving
Tried to install Ubuntu desktop on my Dell Inspiron 1420 but failed, finally work around it and solved the problem. All the problems encountered might be caused by my computer graphical card "NVIDIA GeForece 8400M GS", it has hardware failure before and I ...
分类:其他好文   时间:2014-09-09 16:13:09    阅读次数:266
JAVA card 应用开发(九)APDU脚本命令中MAC的校验
发卡行有主密钥。在发卡的时候,发卡行把主密钥根据卡号分散,卡片得到分散密钥。交易过程中,发卡行接收到包含卡号的交易数据,通过主密钥,根据卡号得到分散密钥,根据ATC和分散密钥,得到过程密钥,使用过程密钥加密数据,得到MAC。而卡片本身已经存储有分散密钥,在交易过程中,根据ATC和分散密钥,计算得到过程密钥,使用过程密钥校验MAC是否正确。...
分类:编程语言   时间:2014-09-09 16:04:28    阅读次数:405
nyoj 44 子串和
子串和 时间限制:5000 ms  |  内存限制:65535 KB 难度:3 描述给定一整型数列{a1,a2...,an},找出连续非空子串{ax,ax+1,...,ay},使得该子序列的和最大,其中,1 输入 第一行是一个整数N(N 每组测试数据的第一行是一个整数n表示序列中共有n个整数,随后的一行里有n个整数I(-100= 输出 对于每组测试数据输出和最大...
分类:其他好文   时间:2014-09-09 13:03:59    阅读次数:167
nyoj 73 比大小 【java大数】
java大数。 代码: import java.util.Scanner; import java.math.*; public class Main{ public static void main(String[] args){ Scanner cin = new Scanner(System.in); BigInteger a, b; BigInteger t = BigI...
分类:编程语言   时间:2014-09-06 23:54:34    阅读次数:558
nyoj 114 某种序列 【java大数】
rt 代码: import java.util.Scanner; import java.math.*; public class Main{ public static void main(String[] args){ Scanner cin = new Scanner(System.in); BigInteger a, b, c, ans, temp1, temp2; wh...
分类:编程语言   时间:2014-09-06 23:54:14    阅读次数:488
nyoj 45 棋盘覆盖 【Java大数】
先算出来2^k*2^k 之后减去1,最后除3即可 代码: import java.util.Scanner; import java.math.*; public class Main{ public static void main(String[] args){ Scanner cin = new Scanner(System.in); BigInteger ans,ans1, ...
分类:编程语言   时间:2014-09-06 23:53:24    阅读次数:557
nyoj 513 A+B Problem IV 【Java大数】
这道题有点小坑。。 特殊数据 输入 0.0 0.0 输出 0 代码: import java.util.Scanner; import java.math.*; public class Main{ public static void main(String[] args){ Scanner cin = new Scanner(System.in); BigDecimal...
分类:编程语言   时间:2014-09-06 23:52:34    阅读次数:481
nyoj 803 A/B Problem 【Java大数】
先用字符串将字符串接收,然后在用BigInteger就好了 代码: import java.util.Scanner; import java.math.*; public class Main{ public static void main(String[] args){ Scanner cin = new Scanner(System.in); while(cin.hasNex...
分类:编程语言   时间:2014-09-06 23:52:04    阅读次数:488
hdu 4336 Card Collector(期望)
http://acm.hdu.edu.cn/showproblem.php?pid=4336 有N种卡片,每一袋零食里面最多有一张卡片,给出一袋零食里面每种卡片的概率,问平均要买多少袋零食能收集到所有的卡片。 状态压缩一下,共有1 这一袋零食里没有卡片,概率为p(没有一张卡片的概率),状态转移到sta; 这一袋零食里面有卡片j,但是他已经拥有这种卡片,概率是a[j],状...
分类:其他好文   时间:2014-09-06 16:09:53    阅读次数:260
Ubuntu wireless network connection in command line
After installed the the graphical card driver in Ubuntu, the gnome desktop was not working anymore, needs to install and setup the wireless network, herewith the procedure,...
分类:Web程序   时间:2014-09-05 22:27:02    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!