码迷,mamicode.com
首页 >  
搜索关键字:while read line for ifs    ( 74720个结果
1010 一元多项式求导 (25 分)
如果求导之后没有任何非零项,需要输出0 0。 int main() { string line; getline(cin,line); stringstream ss(line); int a,b; bool first=true; while(ss>>a>>b) { a*=b; b--; if(b ...
分类:其他好文   时间:2021-02-16 11:53:11    阅读次数:0
Tech road one step
technology road one step 2021-02-12 1. 工程能力 1. DDD 《DDD》 chapter4 分离领域 ; chapter5 软件中表示的模型 《IDDD》Entity 《分析模式》 确定范围 《对象设计,角色,责任和协作》 2. 软件架构 1. <Java 应 ...
分类:其他好文   时间:2021-02-16 11:50:55    阅读次数:0
[Bash] Read and Use JSON in Bash with jq
jq Bash, unfortunately, doesn’t ship with a command that can work with JSON natively. In this lesson, we’ll learn how to read and do basic queries on ...
分类:Web程序   时间:2021-02-15 12:41:34    阅读次数:0
Vue2.x Class & Style Bindings
Intoduciton: The way of using '' in html part confused me when I was learning Class&Style Bindings in Vue's official guide.(of course it's also becaus ...
分类:其他好文   时间:2021-02-15 12:40:17    阅读次数:0
「Selenium」- Can not connect to the Service /path/to/chromedriver @20210211
问题描述 # python3.7 /tmp/demo.py Traceback (most recent call last): File "/tmp/demo.py", line 4, in <module> driver = webdriver.Chrome('/srv/sharing/pack ...
分类:其他好文   时间:2021-02-15 12:38:15    阅读次数:0
剑指 Offer 57. 和为s的两个数字
题意 在一个有序数组里找两个和为s的数字 思路 1??有序,立刻联想到二分查找,我们可以依次遍历数组中的每个数字,然后二分查找另一个数字使得和可以为s。 2??双指针的写法 一开始分别放在最左和最右,对应为最小和最大的数字,记两个指针指向的元素的和为sum 如果sum > target,说明太大,则 ...
分类:其他好文   时间:2021-02-15 12:36:24    阅读次数:0
CF1480 题解
CF1480A Yet Another String Game Problem 给出一个字符串,两人轮流操作,每次操作可以将一个字符改为另外一个字符,当不可以不改动,先手目标是让最终字符串字典序最小,后手目标相反,求最终字符串。 Sol 贪心地模拟即可。 #define in read() int ...
分类:其他好文   时间:2021-02-15 12:23:09    阅读次数:0
1069 The Black Hole of Numbers (20 分)
注意不满$4$位的话要补成$4$位。 string s; set<int> S; int main() { cin>>s; while(s.size()<4) s='0'+s; while(true) { sort(s.begin(),s.end(),greater<char>()); string ...
分类:其他好文   时间:2021-02-15 12:21:49    阅读次数:0
搬家第14天-141.Wincc V7.3 使用c脚本在treeview填入常数数据,并展开所有节点
前面一篇博客记录了怎么初始化treeview控件,但是节点都是收缩的,如果希望初始化时节点都是展开的,那么需要在后面添加红色部分的脚本。 在画面上放置一个treeview控件,名字修改为TV,画面打开事件加入以下c脚本: #include "apdefap.h"void OnOpenPicture( ...
分类:Windows程序   时间:2021-02-15 12:13:53    阅读次数:0
pom.xml报错:Failed to read artifact descriptor for xxxxxx.jar问题的解决方法
pom.xml报错:Failed to read artifact descriptor for xxxxxx.jar问题的解决方法 ...
分类:编程语言   时间:2021-02-15 12:05:54    阅读次数:0
74720条   上一页 1 ... 82 83 84 85 86 ... 7472 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!