![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
lonely_wind_
路漫漫兮
展开
-
CodeForces 592C-Warrior and Archer(数论+python写法)
题目链接:https://codeforces.com/problemset/problem/592/C 博客园食用链接: https://www.cnblogs.com/lonely-wind-/p/13444300.html Vector Willman and Array Bolt are the two most famous athletes of Byteforces. They are going to compete in a race with a distance of L meters原创 2020-08-06 09:34:13 · 316 阅读 · 0 评论 -
python笔记之2-读入+结构体数组+sort关键字排序+题目:国王的游戏(洛谷P1080)
emmm,之前的已经学了一点点PY了,但今天又碰到一题大整数的卡了好一会儿,于是做个笔记记录一下今天学的 首先是读入,之前的只能读一行一个数,显然太过狭隘了,现在我要一行读好几个数怎么办呢,只要用分隔符分割一下就好了: wang=input().split(' ') a=wang[0];b=wang[1]; 这里我读入了两个数,并以空格分开。 接下来就是结构体了,但在python里面使用...原创 2019-08-23 21:33:27 · 1452 阅读 · 1 评论 -
python笔记之1-简单读入+循环、判断+数组+函数调用+题目Resistors in Parallel(18焦作)
。。。。本来博主想一心一意搞算法和C++的,但今天的大数用C++写真的。。。心态爆炸,然后学了一波python。。。多路周折终于A了这题 python的语言在有了c语言的基础上其实还挺好学的。。。虽然博主学了半个下午才把线性素数筛和gcd写出来了QAQ,但博主觉得各位应该更快。。。。 python不需要头文件。。。直接写,变量也不用定义但它的读入有点。。。一行只读一个东西 n=int(in...原创 2019-08-22 00:31:17 · 521 阅读 · 0 评论