`
lilisalo
  • 浏览: 1109634 次
文章分类
社区版块
存档分类
最新评论
文章列表
Self Numbers Source : ACM ICPC Mid-Central USA 1998 Time limit : 5 sec Memory limit : 32 M Submitted : 1119, Accepted : 448 In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to ...
Ordered Fractions Source : Unknown Time limit : 3 sec Memory limit : 32 M Submitted : 1140, Accepted : 349 Consider the set of all reduced fractions between 0 and 1 inclusive with denominators less than or equal to N. Here is the set when N = 5: 0/1 1/5 1/4 ...
Prime Land Source : ACM ICPC Central European Regional 1997 Time limit : 1 sec Memory limit : 32 M Submitted : 238, Accepted : 133 Everybody in the Prime Land is using a prime base number system. In this system, each positive integer x is represented as follows: ...
分享Silverlight/WPF/Windows Phone一周学习导读(10月22日-10月29日) 本周Silverlight学习资源更新 【Silverlight】支持GB2312编码 Aimeast Silverlight之out of Browser模式 KenshinCui Silverlight的多媒体功能——音频和视频 daizhongkai0611 Silverlight中的InkPresenter(可以保存、加载) wangyafei_it 框架页中Silverlight和Web页面之间跳转和返回 taomanm ...
Virtual Dispatch 首先从字节码中对方法的调用说起。 java的bytecode中对方法的调用实现分为四种情况: 1.invokevirtual 为最常见的情况,包含virtual dispatch机制; 2.invokespecial是作为private和构造方法的调用,绕过了virtual dispatch; 3.invokeinterface的实现跟invokevirtual类似。
java 的类加载机制背景知识:
本文不涉及一些微妙蛋疼的语法比较, 关注的是宏观方面, 当然后期逐步更新如果, 如果觉得必要, 可能会加上. 议题之一: 初始化的比较 1.CPP基类的任何类构造函数会默认调用父类的不带参数的构造函数, 这点Java也是同样处理的. 子类调用父类的构造函数方式会不同, C++中这样做: Son::Son(int id):Father(id) { //Father(10); //注意,这样虽然编译通过,但事实上在构造一个Father类,完了( 出了作用域)之后就立即销毁. 危害非常之大. cout<<"in Sonconstructor Son(int id ...
Discount Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 89Accepted Submission(s): 70Problem Description All the shops use discount to attract customers, but some shops doesn’t give direct discount on their goods, instead, they give discou ...
土人比较落后,直到前几天才看了黑客帝国 = =。 真是很经典的片子,囊括了哲学和计算机科学。特别适合咱们程序员~其中许多思想都能真正跟AI对接吧~~ 或许以前看不会感触那么深,包括the Matrix系统中“杀 ...
学计算机11年 从2000年进入大学至今学习计算机已经有11年余,本科的专业是计算机科学与技术,初接触计算机学的内容是c程序设计和汇编语言,好多专业术语都不懂,当时大家普遍感到吃力的很,因为之前并没有接触过计算机,没有学习过计算机基础,连基本的操作都不会,当时的计算机还没有现在这么普及。于是,在国庆节期间,找老师补习了几天的计算机基础,在前2-3个月学习汇编,和c程序设计,感觉都是似懂非懂,不懂的专业术语赶快找宿舍的冲哥问,随着时间流逝,慢慢才入了门。第一学期可以说是非常艰难。到了第二学期,我们开设的是数据结构,操作系统,由于在前一学期c语言没有学好,基础不扎实,数据结构用的是严蔚敏的教材,里 ...
How Many Sets II Time Limit: 2 Seconds Memory Limit: 65536 KB Given a set S = {1, 2, ..., n}, number m and p, your job is to count how many set T satisfies the following condition: T is a subset of S |T| = m T does not contain continuous numbers, that is to say x and x+1 can not bot ...
How Many Sets I Time Limit: 2 Seconds Memory Limit: 65536 KB Give a set S, |S| = n, then how many ordered set group (S1, S2, ..., Sk) satisfies S1 ∩ S2 ∩ ... ∩ Sk = ∅. (Si is a subset of S, (1 <= i <= k)) Input The input contains multiple cases, each case have 2 integers in one line ...
Little Keng Time Limit: 2 Seconds Memory Limit: 65536 KB Calculate how many 0s at the end of the value below: 1n + 2n + 3n + ... + mn Input There are multiple cases. For each cases, the input containing two integers m, n. (1 <= m <= 100 , 1 <= n <= 1000000) Output One lin ...
Niven Numbers Source : Unknown Time limit : 1 sec Memory limit : 32 M Submitted : 4166, Accepted : 681 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides ...
How many N Source : xy Time limit : 15 sec Memory limit : 32 M Submitted : 5977, Accepted : 1136 Find a minimal interger K which is merely comprised of N and can be divided by M. For example,11 is the minimal number that and be divided by 11, and it is compris ...
Global site tag (gtag.js) - Google Analytics