
c++
007_rbq
007rbq
展开
-
如何用概率知识写WOJ-103这道题(python)
题目和想法:https://blog.youkuaiyun.com/qq_21882325/article/details/78052388个人用python写的#WOJ 103.py#这是一道概率题目,A连赢两把的概率为p的平方,连输两把的概率为(1-p)的平方,一胜一负没啥用# 相当于起始状态#所以为了方便,我们直接对读的数据进行这两种运算。def main(): t=int(i...原创 2020-03-18 22:07:08 · 226 阅读 · 0 评论 -
如何写WOJ的1143题
//1143.cpp#include<iostream>#include<cstdio>using namespace std;int main(){ int p,m,n; while (cin>>m>>p>>n) { if(p==0&&m==0&&n==...原创 2020-03-15 16:06:14 · 162 阅读 · 0 评论 -
如何做WOJ第1023道题
利用c++的map#include<iostream>#include<cstdio>#include<map>using namespace std;map <int,int> mp;int main(){ int n; while(cin>>n) { int tmp,maxx...原创 2020-03-15 16:03:48 · 175 阅读 · 0 评论 -
WOJ 315 (python超时和c++不超时 )反复平方剩余法
#include<iostream>#include<cstdio>using namespace std;long mod(long a, long b, long c){ long res = 1; while (b >= 1){ if (b % 2 == 1) res = (res*a) % c; a =...原创 2020-03-15 16:01:57 · 178 阅读 · 0 评论 -
虚拟机如何安装优麒麟19.10
参考博客:https://blog.youkuaiyun.com/qq_40495217/article/details/79670162下载好镜像后,我们先在VM里面创建新的虚拟机然后,根据需求选择自定义,然后再选择稍后安装操作系统,然后等一切准备好后导入镜像点击开始按钮运行之后填写个人的账号和密码:之后静静等待30多分钟安装就行了。等待安装完毕,会有提示系统安装完成,然...原创 2020-01-30 10:58:03 · 679 阅读 · 0 评论 -
用c++写一个键盘记录程序
用c++写一个键盘记录程序**#include <windows.h> #include <Winuser.h> #include <string> #include <fstream> #include <iostream> using namespace std; string GetKey(int Key) // 判断键盘按下什么...原创 2019-06-27 14:15:24 · 2104 阅读 · 1 评论