ConanMoke's Blog

God kisses me with pain, and I will sing in return


  • 首页

  • 标签

  • 分类

  • 归档

  • 关于

  • 搜索

矩阵快速幂入门

发表于 2018-08-28 | 更新于 2018-09-06 | 分类于 思维 | 阅读次数: 次

快速幂

阅读全文 »

费马大定理+快读

发表于 2018-08-27 | 更新于 2018-09-06 | 分类于 矩阵快速幂 | 阅读次数: 次

来源 HDU 6441 Find Integer

描述

Problem Description

people in USSS love math very much, and there is a famous math problem.
give you two integers n,a,you are required to find 2 integers b,c such that a^n+b^n=c^n.

Input

one line contains one integer T;(1≤T≤1000000)
next T lines contains two integers n,a;(0≤n≤1000,000,000,3≤a≤40000)

Output

print two integers b,c if b,c exits;(1≤b,c≤1000,000,000);
else print two integers -1 -1 instead.

Sample Input

1
2 3

Sample Output

4 5

阅读全文 »

文章加密及Markdown语法测试

发表于 2018-08-11 | 更新于 2018-08-12 | 分类于 测试 | 阅读次数: 次
密码是某人的名字。
阅读全文 »

测试

发表于 2018-08-01 | 更新于 2018-08-12 | 分类于 测试 | 阅读次数: 次
这是一篇各种测试的博文。(没有彩蛋-真的)密码:青椒
阅读全文 »

Hello World

发表于 2018-07-29 | 更新于 2018-08-04 | 分类于 测试 | 阅读次数: 次

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

ConanMoke

ConanMoke

莫等闭,白了少年头,空悲切

5 日志
3 分类
3 标签
GitHub E-Mail Twitter Bilibili
友情链接
  • Nick
  • Armin
  • Angro
0%
© 2018 ConanMoke
本站访客数:
本站总访问量:
|
主题 — NexT.Gemini v6.3.0
博客全站共3.6k字