2054 : 油田 (一个神奇的功能:点击上方文字进入相应页面) 时间限制:1 Sec 内存限制:32 MiB提交:49 答案正确:6 提交 状态 讨论区 题目描述 在太平洋的一片海域,发现了大量的油田! 为了方便开采这些能源,人们将这些油田从1到n进行编号, 人们在开采这些油田时,有三种开采方式, ...
分类:
其他好文 时间:
2017-12-02 21:04:04
阅读次数:
277
1 #include 2 #include 3 void Print(int a[1001]); 4 int main() 5 { 6 int t,i,j,k; 7 scanf("%d",&t); 8 getchar(); 9 char temp1[1001],temp2[1001]; 10 int... ...
分类:
其他好文 时间:
2017-12-02 15:05:00
阅读次数:
151
大纲 what is color? The result of interaction between physical light in the environment and our visual system. A psychological property of our visual ex ...
分类:
移动开发 时间:
2017-12-02 14:05:32
阅读次数:
489
两道64位栈溢出,思路和之前的32位溢出基本一致,所以放在一起 在这两道中体现的32位和64位的主要区别在于函数参数传递的方式 在32位程序运行中,函数参数直接压入栈中 调用函数时栈的结构为:调用函数地址->函数的返回地址->参数n->参数n-1->···->参数1 在64位程序运行中,参数传递需要 ...
分类:
编程语言 时间:
2017-12-01 16:41:58
阅读次数:
549
1.Dll引用路径 (1)exe运行程序所在的目录 (2)System32目录 (3)环境变量目录 (4)自定义路径,如:DllImport(@"C:\OJ\Bin\Judge.dll") 2..DllImport用法 [DllImport("User32.dll")] private static ...
分类:
其他好文 时间:
2017-11-30 13:34:22
阅读次数:
199
Less的模式匹配 Less提供了一种机制,允许根据参数的值来改变 mixin的行为。比如,以下代码就可以让 .mixin 根据不同的 @switch 值而表现各异: 此时,在调用 .mixin 时:如果 @switch 设为 light,就会得到浅色;如果 @switch 设为 dark,就会得到 ...
分类:
其他好文 时间:
2017-11-28 11:49:58
阅读次数:
183
``` / Source : https://oj.leetcode.com/problems/linked list cycle/ Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it ...
分类:
其他好文 时间:
2017-11-28 01:43:18
阅读次数:
160
``` / Source : https://oj.leetcode.com/problems/linked list cycle ii/ Given a linked list, return the node where the cycle begins. If there is no cycl ...
分类:
其他好文 时间:
2017-11-28 01:26:30
阅读次数:
145
华南师大 2017 年 ACM 程序设计竞赛新生初赛题解 题解 被你们虐了千百遍的题目和 OJ 也很累的,也想要休息,所以你们别想了,行行好放过它们,我们来看题解吧。。。 A. 诡异的计数法 Description cgy 太喜欢质数了以至于他计数也需要用质数表示!在他看来,2(第一小质数)表示1, ...
分类:
其他好文 时间:
2017-11-27 21:35:51
阅读次数:
145
#include int fun(int); int main(){ int n; while(scanf("%d",&n)!=EOF){ printf("\n%d",fun(n)); } return 0; } int fun(int n){ int sum = 0; for(int i=1;i<... ...
分类:
其他好文 时间:
2017-11-27 14:16:55
阅读次数:
98