#include
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
{
int i,last;
a=a%10;
b=b%4;
last=a;//必须在此处将a的值赋给last
if(b==0) b=4;
for(i=1;i<b;i++)
{
last=a*last%10;
}
printf...
分类:
其他好文 时间:
2014-07-23 13:23:26
阅读次数:
282
低版本的android编译环境是不支持使用java7语法的,如果使用了,就会产生上述问题,如果你的android环境较新,那么可以使用以下方法:在build.gradle的android标签下加入以下代码 compileOptions { sourceCompatibility Jav...
分类:
移动开发 时间:
2014-07-22 00:20:34
阅读次数:
281
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points ...
分类:
其他好文 时间:
2014-07-21 22:11:18
阅读次数:
289
Problem Description
Eight-puzzle, which is also called "Nine grids", comes from an old game.
In this game, you are given a 3 by 3 board and 8 tiles. The tiles are numbered from 1 to 8 and each ...
分类:
其他好文 时间:
2014-07-21 16:22:02
阅读次数:
264
监控:1、检查服务可以性2、性能指标检查ganglia专门做性能指标的工具collectd性能好mrtgrrdtoolRoundRobindatebasegraphite安装:yuminstallgraphite-webyuminstallpython-carbonyuminstallpython-whisper启动carbon:/etc/init.d/carbon-cacherestart修改graphite配置:/etc/..
分类:
其他好文 时间:
2014-07-20 23:48:43
阅读次数:
432
日志分析界面:logstash(分析端)+elashsearch(存储端)+kibana(展示端)工具:进行数据整理statsd1、diamond-->statsd-->graphite2、实时收集数据的做法:logstash-->statsd-->graphite日志收集可视化(LEK):logstash+elasticsearch+kibanalegend:logstash--》..
分类:
其他好文 时间:
2014-07-20 23:38:43
阅读次数:
696
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc...
分类:
其他好文 时间:
2014-07-18 15:07:26
阅读次数:
223
EightTime Limit:1000MSMemory Limit:65536KTotal Submissions:23815Accepted:10518Special JudgeDescriptionThe 15-puzzle has been around for over 100 years...
分类:
其他好文 时间:
2014-07-16 20:48:30
阅读次数:
219
先上题目:Multiplication PuzzleTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 6162Accepted: 3758DescriptionThe multiplication puzzle is played wi...
分类:
其他好文 时间:
2014-07-16 18:14:34
阅读次数:
213
把L,H,W分别减一就变成上面一个题目了。不多说,也不召唤代码君了。
分类:
其他好文 时间:
2014-07-13 22:17:32
阅读次数:
197