题目链接:https://vjudge.net/problem/LightOJ-1282 题目大意: 给出一个数n,求n^k次方后的数的前三位和后三位的值。 题目分析: 对于数的后三位可以直接用快速幂取模的方法求得。 求数的前三位,可以先对n^k取log10,此时得到 x=k*log10(n),即1 ...
分类:
其他好文 时间:
2017-07-23 12:29:28
阅读次数:
148
There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading world media are try ...
分类:
其他好文 时间:
2017-07-23 00:57:09
阅读次数:
265
升级python版本号后,执行yum # yum -y install openssl 提演示样例如以下: There was a problem importing one of the Python modules required to run yum. The error leading t ...
分类:
编程语言 时间:
2017-07-21 23:26:25
阅读次数:
338
以下内容适用于oracle 10.2.0.5及其以上版本 一个查询很慢,原始SQL如下: 表都不大,执行计划如下: 这个执行计划,看起来无比正常,应该要left join的都有。 但问题的关键在于10 步骤-- MERGE JOIN CARTESIAN。笛卡尔乘积的排序合并连接,这个需要耗费很长时间 ...
分类:
数据库 时间:
2017-07-07 20:02:06
阅读次数:
292
// // <copyright file="Program.cs" company="Chimomo's Company"> // // Respect the work. // // </copyright> // <summary> // // Heap sort. // // 堆排序是一种选 ...
分类:
编程语言 时间:
2017-07-04 20:17:08
阅读次数:
152
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: Example 1: Exa ...
分类:
其他好文 时间:
2017-07-04 18:25:07
阅读次数:
133
windwos字体显示。採用TEXTMETRIC结构存储字体各个显示字段。Baseline 一般由Ascent 计算。字体的高度Height 包含了Ascent和Descent。计算正文字体,能够採用 Height,也能够採用Height+External Leading 的值。External L ...
Specialized Four-Digit Numbers Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7038 Accepted Subm ...
分类:
其他好文 时间:
2017-06-21 11:27:52
阅读次数:
122
[php] view plain copy print? [php] view plain copy print? [php] view plain copy print? [php] view plain copy print? ...
分类:
Web程序 时间:
2017-06-17 00:14:47
阅读次数:
199
[转]【原文】 大家好,好久不见,今天要给大家讲一下Android中Intent中如何传递对象,就我目前所知道的有两种方法,一种是Bundle.putSerializable(Key,Object);另一种是Bundle.putParcelable(Key, Object);当然这些Object是有 ...
分类:
移动开发 时间:
2017-06-14 20:10:58
阅读次数:
309