题解
12Shen
摸了
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CINTA作业十:QR编程
利用二次互反律,写程序完成勒让德符号(qp)\left(\frac{q}{p}\right)(pq)的计算,ppp和qqq是任意的奇素数。//利用欧拉准则#include <iostream>using namespace std;int pow(int a, int n, int m) { long long ans = 1; long long x = a; while (n) { if (n & 1 == 1) { ans = ans * x % m;原创 2020-12-05 16:35:06 · 372 阅读 · 1 评论 -
洛谷P1563玩具谜题
简单的模拟,用结构体管理数据,一共就两种情况#include <iostream>#include <cstring>using namespace std;struct people{ int po; string work;};int main(){ int n,m,i,j,a,b,dir = 0; cin>>n&...原创 2020-04-28 09:41:09 · 197 阅读 · 0 评论
分享