题面 题目背景 John的农场缺水了!!! 题目描述 Farmer John has decided to bring water to his N (1 <= N <= 300) pastures which are conveniently numbered 1..N. He may bring water to a pasture either by building a well in that pasture or connecting the pasture via a pipe…
https://www.luogu.org/problemnew/show/P1553 忘记给整数加上前导零去除的代码了.其实不去也可以,额外的进位用一个carry另外存起来就好. #include<bits/stdc++.h> using namespace std; #define ll long long ]; int main(){ scanf("%s",s); int n=strlen(s); ;i<n;i++){ if(s[i]=='.'){ revers…