自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 Leetcode基础题:深度优先搜索

力扣基础题,内容为深度优先搜索

2023-01-14 12:48:46 531

原创 leetcode基础题:二分查找

力扣二分查找的一些简单题,所有代码均为通过

2023-01-11 13:41:53 181 1

转载 (转载)深度学习常用的10种激活函数

深度学习常用的10种激活函数及性质介绍

2023-01-11 13:24:02 624

原创 关于Nvidia卡在注册界面的问题

解决Nvidia要求注册后下载的问题

2022-09-17 14:29:02 1536

原创 PAT A1059 Prime Factors

Sample Input:97532468Sample Output:97532468=2^2*11*17*101*1291分析:对于给定数字n,查找到n的平方根即可。如果在此之内都没有因子,则n是质数,质数和1的情况需要单独处理使用数组来统计每个因子的数量,由于题目要求,可以在分解过程中输出结果#include<iostream>using namespace std;bool isprime(int n) { if (n <= 1) return false.

2022-05-29 14:03:39 111

原创 PAT A1078 Hashing

1078 HashingThe task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined to be H(key)=key%TSize where TSize is the maximum size of the h

2022-05-26 16:57:44 107

原创 PAT A1081 Rational Sum

1081 Rational SumGiven N rational numbers in the form numerator/denominator, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case starts with a positive integer N (≤100), followed in the next li

2022-05-23 17:40:08 65

原创 PAT B1003 我要通过

1003 我要通过!“答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于 PAT 的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。得到“答案正确”的条件是:1)字符串中必须仅有 P、 A、 T这三种字符,不可以包含其它字符; 2)任意形如 xPATx 的字符串都可以获得“答案正确”,其中 x 或者是空字符串,或者是仅由字母 A 组成的字符串; 3)如果 aPbTc 是正确的,那么 aPbATca 也是正确的,其中 a、 b、 c 均或

2022-05-22 18:41:35 72

原创 PAT B1030/A1085 完美数列

1085 Perfect Sequence分数 25作者 CAO, Peng单位 浙江大学Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the maximum and minimum numbers in the sequence, respectively.

2022-05-21 17:19:11 138

原创 PAT A1048 Find Coins

1048 Find Coins分数 25作者 CHEN, Yue单位 浙江大学Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However, there was a

2022-05-19 18:23:17 170

原创 PATB1015/A1062 德才论

`1015 德才论宋代史学家司马光在《资治通鉴》中有一段著名的“德才论”:“是故才德全尽谓之圣人,才德兼亡谓之愚人,德胜才谓之君子,才胜德谓之小人。凡取人之术,苟不得圣人,君子而与之,与其得小人,不若得愚人。”现给出一批考生的德才分数,请根据司马光的理论给出录取排名。输入格式:输入第一行给出 3 个正整数,分别为:N(≤10 5 ),即考生总数;L(≥60),为录取最低分数线,即德分和才分均不低于 L 的考生才有资格被考虑录取;H(<100),为优先录取线——德分和才分均不低于此线

2022-05-19 15:20:15 89

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除