
【数学1】基础数学问题
dllglvzhenfeng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
洛谷 深基 第4部分 基础数学与数论(19-21课)
洛谷 深基 第4部分 基础数学与数论 第19章 位运算与进制转换P1143 进制转换https://www.luogu.com.cn/problem/P1143洛谷P1143 进制转换的Python解法(17行)洛谷P1143 进制转换的Python解法(17行)_MRH0420的博客-优快云博客P1469 找筷子找筷子 - 洛谷P1469 找筷子(python3实现)-- 10分P1469 找筷子(python3实现)-- 10分_青少年趣味编程-优快云博客.原创 2022-02-18 20:42:06 · 1663 阅读 · 0 评论 -
洛谷 深基 第4部分 基础数学与数论 第19章 位运算与进制转换
P1143 进制转换进制转换 - 洛谷洛谷P1143 进制转换的Python解法(17行)洛谷P1143 进制转换的Python解法(17行)_MRH0420的博客-优快云博客P1469 找筷子找筷子 - 洛谷P1469 找筷子(python3实现)-- 10分P1469 找筷子(python3实现)-- 10分_青少年趣味编程-优快云博客P1100 高低位交换高低位交换 - 洛谷P1100 高低位交换(python3实现)P1100 高低位交换(原创 2022-02-18 19:40:47 · 474 阅读 · 0 评论 -
P1469 找筷子(python3实现)-- 10分
"""P1469 找筷子(python3实现)-- 10分https://www.luogu.com.cn/problem/P1469"""ans=0n=int( input( ) )a=list( map( int,input().split() ) )for i in range(n): ans^=a[i]print( ans ) 2.3 基本算法之递归变递推 放苹果 python2.3 基本算法之递归变递推 放苹果.原创 2022-02-18 17:43:32 · 739 阅读 · 0 评论 -
P2660 zzc 种田( python3实现)
zzc 种田 - 洛谷"""P2660 zzc 种田( python3实现)https://www.luogu.com.cn/problem/P2660"""ans=0x,y=map(int,input().split() )while x!=0 and y!=0: x,y=y,x ans+=4*y*(x//y) x%=yprint(ans)...原创 2022-02-03 11:35:13 · 303 阅读 · 0 评论 -
P4057 [Code+#1]晨跑(python3实现)
[Code+#1]晨跑 - 洛谷"""P4057 [Code+#1]晨跑(python3实现)https://www.luogu.com.cn/problem/P4057"""def gcd(x,y): if y==0: return x else: return gcd(y,x%y)x,y,z=list( map(int,input().原创 2022-02-03 11:13:43 · 320 阅读 · 0 评论 -
P1414 又是毕业季II (80分 python3实现)
又是毕业季II - 洛谷"""P1414 又是毕业季II(80分 python3实现)https://www.luogu.com.cn/problem/P1414"""import math#d=[0]*1000001d=[0 for col in range(1000001)] p=0n=int(input())a=list( map( int,input().split() ) )for i in range(n): p=max(p,原创 2022-02-03 10:55:15 · 229 阅读 · 0 评论 -
P2651 添加括号III(python3实现)
添加括号III - 洛谷"""P2651 添加括号III(python3实现)https://www.luogu.com.cn/problem/P2651"""def gcd(a,b): if b==0: return a else: return gcd(b,a%b)t=int(input())for i in range(t):原创 2022-02-03 10:23:10 · 527 阅读 · 0 评论 -
P1403 [AHOI2005]约数研究--100分(python3实现)
[AHOI2005]约数研究 - 洛谷"""P1403 [AHOI2005]约数研究--100分(python3实现)https://www.luogu.com.cn/problem/P1403"""ans=0#a=[0]*1000010n=int( input() )for i in range(1,n+1): ans+=n//iprint( ans )原创 2022-02-02 15:43:30 · 179 阅读 · 0 评论 -
P1017 [NOIP2000 提高组] 进制转换(python3实现)
[NOIP2000 提高组] 进制转换 - 洛谷"""P1017 [NOIP2000 提高组] 进制转换(python3实现)https://www.luogu.com.cn/problem/P1017"""def zhuan(n,r): if n==0: return m=n%r if m<0: m-=r原创 2022-02-02 14:35:35 · 300 阅读 · 0 评论 -
P1100 高低位交换(python3实现)
高低位交换 - 洛谷"""P1100 高低位交换(python3实现)https://www.luogu.com.cn/problem/P1100"""x=int( input() )ans=( ( x & 0x0000ffff )<< 16 | ( x & 0xffff0000 ) >> 16 )print( ans )原创 2022-02-02 14:10:37 · 540 阅读 · 0 评论 -
P1029 [NOIP2001 普及组] 最大公约数和最小公倍数问题(2022.02.02) --- python3实现
[NOIP2001 普及组] 最大公约数和最小公倍数问题 - 洛谷"""P1029 [NOIP2001 普及组] 最大公约数和最小公倍数问题(2022.02.02)https://www.luogu.com.cn/problem/P1029"""import mathans=0def gcd(a,b): if a%b==0: return b else:原创 2022-02-02 12:46:25 · 370 阅读 · 0 评论