- 博客(6)
- 收藏
- 关注
原创 PyQt6简单教程(一)
目录事先声明正题安装PyQt6第一种第二种事先声明本人说的东西与官方文档基本相似,如果有英语阅读能力,请前往官方API正题安装PyQt6我们有两种安装方法,推荐大家使用第一种第一种点击Windows+R,输入cmd,我们要先安装好Python3.6以上的版本,如果没有安装,请前往Python官网下载。在cmd中输入:pip install PySide6正常情况下就会自动安装当再次出现C:/Users/*****>时安装结束
2021-10-29 22:08:02 4974
原创 洛谷P1138 第k小整数题解(C++)
#include <iostream>#include <cstring>using namespace std;bool t[30000];//做个桶排序的数组int n,k;int a;int cnt=0,ans=-1;int main(){ memset(t,false,sizeof t);//初始化一下桶 cin>>n>>k; for(int i=0;i<n;i++){ cin>>a; t[a]=true.
2021-10-21 16:06:51 491
原创 洛谷P1029 最大公约数与最小公倍数问题题解(C++)
#include <cstdio>using namespace std;long long x0,y0,ans=0;int g(int a,int b){//最小公倍数函数 if(a%b==0) return b; else return g(b,a%b);}int main(){ scanf("%lld%lld",&x0,&y0); if(x0==y0){//如果一样的话,只有本身符合要求 printf("%lld",1); return 0; .
2021-10-20 16:20:47 210
原创 洛谷P1055 ISBN号码题解 (C++)
这道题不难,讲解我都写在注释里面了。#include <iostream>//io流 #include <string>//字符串 using namespace std;//直接导入std string a;//输入的ISBN码 int n;//余数统计 int main(){ cin>>a;//输入ISBN码 n=a[0]-48+(a[2]-48)*2+(a[3]-48)*3+(a[4]-48)*4+(a[6]-48)*5+(a[7]-48)*6
2021-09-22 20:19:02 305 1
原创 洛谷P1001 A+B Problem题解(C++)
这个题很简单很简单,算出A+B,虽然没有人不会做,但是我们也要发,对吧[doge]这么简单的题,不说了:#include <iostream>using namespace std;int main() { int a,b; cin>>a>>b; cout<<a+b<<endl; return 0;}太水了太水了,我先走了再见~...
2021-09-05 10:00:06 255
原创 洛谷P1000 超级玛丽题解(C++)
这个题其实无技术含量,只不过是工程量大。总之就是——浪费时间。所以代码公布出来了,就不浪费大家时间了。话不多说,上代码:#include<stdio.h>int main(){ printf(" ********\n"); printf(" ************\n"); printf(" ####....#.\n"); printf(" #..###..
2021-09-05 09:44:06 334
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人