2014年7月19日

摘要: 样题简易的意思就是N盏灯,K个人去关。第K个人只会按下和K成倍数的开关,最后问那几盏灯开着。题目不难,但是代码里一些技巧很好:#includemain(){int n,i,k,j,m,first=1;int a[1008]={0};scanf("%d%d",&m,&n);for(i=1;i<=n;i... 阅读全文

posted @ 2014-07-19 14:21 alexanderone 阅读(108) 评论(0) 推荐(0) 编辑

摘要: D -Mutiples on a circleTime Limit:1000MSMemory Limit:65535KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionTom has a necklace with n jewels. Ther... 阅读全文

posted @ 2014-07-19 14:09 alexanderone 阅读(233) 评论(0) 推荐(0) 编辑


Copyright © 2024 alexanderone
Powered by .NET 8.0 on Kubernetes