关闭

RSA加密算法 C++实现

上信息安全课,老师布置了几个大作业,其中一个为RSA加密算法的实现,不能用Java写。出于兴趣,决定尝试。完成之后,为了便于查找,于是写下这篇文章,以备后续查看。也供大家一起学习,一起进步。 1、预备知识 1.1 快速幂算法     顾名思义,快速幂就是快速算底数的$n$次幂。其时间复杂度为${\rm{O(log n)}}$,与朴素的$O\left( n \right)$相比,效率有了极大的提高。...
阅读(384) 评论(0)

POJ 1651 Multiplication Puzzle

Multiplication Puzzle Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8760   Accepted: 5484 Description The multiplication puzzle is played with a row of cards, each containing ...
阅读(113) 评论(0)

HDU 2476 String painter

String painter Time Limit: 5000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3639    Accepted Submission(s): 1697 Problem Description There are two strings A...
阅读(153) 评论(0)

POJ 1141 Brackets Sequence

Brackets Sequence Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 30738   Accepted: 8817   Special Judge Description Let us define a regular brackets sequence in the following w...
阅读(84) 评论(0)

CodeForces 149D Coloring Brackets

Coloring Brackets time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output Once Petya read a problem about a bracket sequence. He gave...
阅读(69) 评论(0)

HDU 5893 List wants to travel

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=5893 List wants to travel Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 6...
阅读(438) 评论(0)

HYSBZ 2243 [SDOI2011]染色

题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=2243 [SDOI2011]染色 Time Limit: 20 Sec  Memory Limit: 512 MB Submit: 6131  Solved: 2243 [Submit][Status][Discuss] Description 给定一棵有...
阅读(398) 评论(0)

HDU 5880 Family View

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=5880 Family View Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 862    Accep...
阅读(760) 评论(2)

POJ 1655 Balancing Act

题目链接:http://poj.org/problem?id=1655 Balancing Act Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12278 Accepted: 5202 Description Consider a tree T...
阅读(357) 评论(0)

SPOJ QTREE Query on a tree

题目链接:http://www.spoj.com/problems/QTREE/en/ Query on a tree #tree You are given a tree (an acyclic undirected connected graph) withN nodes, and edges numbered 1, 2, 3...N-1. We w...
阅读(203) 评论(0)

HDU 1421 搬寝室

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=1421 搬寝室 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 25720    Accepted Su...
阅读(229) 评论(0)

HDU 1284 钱币兑换问题

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=1284 钱币兑换问题 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9287    Accepted ...
阅读(485) 评论(0)

POJ 1269 Intersecting Lines

题目链接:http://poj.org/problem?id=1269 Intersecting Lines Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 14693 Accepted: 6488 Description We all k...
阅读(204) 评论(0)

POJ 1185 炮兵阵地

题目链接:http://poj.org/problem?id=1185 炮兵阵地 Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 26021 Accepted: 10042 Description 司令部的将军们打算在N*M的网格地图上部署他们的炮...
阅读(287) 评论(0)

HDU 4455 Substrings

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=4455 Substrings Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3115    Acce...
阅读(303) 评论(0)

HDU 4462 Scaring the Birds

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=4462 Scaring the Birds Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3516  ...
阅读(254) 评论(0)

HDU 4460 Friend Chains

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=4460 Friend Chains Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5167    Ac...
阅读(328) 评论(0)

HDU 4463 Outlets

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=4463 Outlets Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3461    Accepted...
阅读(214) 评论(0)

HDU 4452 Running Rabbits

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=4452 Running Rabbits Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1792    ...
阅读(233) 评论(0)

HDU 4445 Crazy Tank

题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=4445 Crazy Tank Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 6159    Acc...
阅读(266) 评论(0)
194条 共10页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:89635次
    • 积分:2934
    • 等级:
    • 排名:第13270名
    • 原创:194篇
    • 转载:0篇
    • 译文:0篇
    • 评论:16条
    大牛博客
    最新评论