0
点赞
收藏
分享

微信扫一扫

P3156 【深基15.例1】询问学号(20分)--python3实现

【深基15.例1】询问学号 - 洛谷

"""

P3156 【深基15.例1】询问学号(20分)--python3实现
https://www.luogu.com.cn/problem/P3156

"""

a=[0]*2000001

n,m=map( int,input().split() )

b=list( map( int,input().split() ) )

for i in range(1,n+1):

            a[i]=b[i-1]

c=list( map( int,input().split() ) )

for i in range (1,m+1):

            x=c[i-1]

            print(a[x])



P5742 【深基7.例11】评等级--python3实现
https://blog.csdn.net/dllglvzhenfeng/article/details/122834290

P5743 【深基7.习8】猴子吃桃(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122768165

P5744 【深基7.习9】培训(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122834094

P2240 【深基12.例1】部分背包问题
https://blog.csdn.net/dllglvzhenfeng/article/details/122755625

P2249 【深基13.例1】查找(AC) 2022.1.28
https://blog.csdn.net/dllglvzhenfeng/article/details/122729592

P1009 [NOIP1998 普及组] 阶乘之和-2022.02.01(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122765402

P1017 [NOIP2000 提高组] 进制转换(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122769452

P1028 [NOIP2001 普及组] 数的计算(python3、scratch实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122829923

 

举报

相关推荐

0 条评论