A hard puzzle Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
原创 2023-05-05 20:23:39
48阅读
A hard puzzleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 28758Accepted Submission(s): 10283Pro...
转载 2015-09-29 10:53:00
99阅读
2评论
A hard puzzle Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 46236    Accepted Submission(s): 16971 Problem Description lcy gives a ha
原创 2023-02-20 10:19:32
20阅读
找规律的题 话说上传顺序貌似不对…… 这题...
转载 2015-12-20 11:19:00
31阅读
2评论
Problem Description lcy gives a hard puzzle to feng5166,lwg,JGShining and Ignatius: gave a and b,how to know the a^b.everybody objects to this BT problem,so lcy makes the problem easier than begin. t
原创 2022-05-14 12:58:54
76阅读
A hard puzzleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13437Accepted Submission(s): 4677Problem Descriptionlcy gives a hard puzzle to feng5166,lwg,JGShining and Ignatius: gave a and b,how to know the a^b.everybody objects to this BT problem,s
转载 2011-08-01 10:23:00
30阅读
2评论
Problem Description:lcy gives a hard puzzle to feng5166,lwg,JGShining and Ignatius: gave a and b,how to know the a^b.everybody objects to this BT problem,so lcy makes the problem easier than begin....
原创 2023-05-09 10:03:42
56阅读
好久没写快速幂了~找下手感 题目大意就是求a^b的最后一个数字。/** a^b*/#include <stdio.h>int main(){ long long a,b; while(~scanf("%lld %lld",&a,&b)) { if(a==1) { printf("1\n");
原创 2022-08-05 10:11:28
18阅读
A hard puzzleTime Limit: 2000/1000 MS (Java/Others)    Memory Limit:
原创 2022-08-11 16:10:53
60阅读
小记:思路和1061是一样的。点击看1061题解
原创 2023-07-18 18:41:51
48阅读
A hard puzzleTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 6553
原创 2023-02-17 09:26:05
47阅读
http://acm.hdu.edu.cn/showproblem.php?pid=1097快速幂取模我理解就是将其幂不断的二分后往前推得过程,奇数的时候先分出一个来变成偶数。。。杭电怎么不认识long long了??改成__int64就对了。。#include <iostream>#include <cstdio>using namespace std;__int64 result(__int64 a,__int64 b,int m){ long long d,t; d=1; t=a; while (b>0) { if (b%2==1) ...
转载 2011-11-23 09:34:00
27阅读
2评论
快速幂: 代码: 例子: 2^10 1 0 1 0 a=2,b=10 0-->a=a*a;a=4 进位为1-->ans=4;a=16; 进位为0-->a=256; 进位为1-->ans=4*256=1024; 2^8 1 0 0 0 a=2,b=8 a=a*a a=4 a=16 a=256 ans=
原创 2021-07-22 15:58:23
64阅读
描述给定a和b,输出a^b的最后一个数字。输入输入数据有多组,每组数据占一行,每行为a和
原创 2022-11-30 09:59:02
61阅读
。。
原创 2022-09-02 22:20:07
104阅读
纯逻辑
原创 2022-06-07 21:13:28
213阅读
  写Bolg~~ 挺有趣!可是对于我来说并不容易。今天早上起来觉得心情糟糕透了,好像头要顶到天上了?不知道是地高了,还是天低了,反正我还是我。总觉得自己很早以前就应该得到的东西在今天变得格外重要。我永远希望“阳光不锈”面对工作的挑战和生活的快了,但是也受不了总是晴天小雨,早晚都得有那么一天“锈”。不容易啊,这第一篇Blog,我这也算是Hard Come了,不知道以后会不会Hard G
原创 2007-11-06 09:37:50
1204阅读
4评论
Lele 最近上课的时候都很无聊,所以他发明了一个数字游戏来打发时间据第一行包含两个整数 N和M(0&
原创 2022-11-07 14:05:05
31阅读
On a 2x3 board, there are 5 tiles represented by the integers 1 through 5, and an empty square represented by 0. A move consists of choosing 0 and a 4
转载 2019-07-17 14:05:00
197阅读
2评论
ich contained 24 small squares of equal size. A unique
原创 2022-11-28 18:25:59
391阅读
  • 1
  • 2
  • 3
  • 4
  • 5