09 2017 档案

摘要:/* 给你加油站,油箱最大加油量,终点和往返次数,求最少加几次油 模拟即可 */ #include using namespace std; int main() { int a,b,k,f,now,ans=0; cin>>a>>b>>f>>k; now=b; if(f>b) puts("-1"); else { now-=f; ... 阅读全文
posted @ 2017-09-26 20:32 Kearon 阅读(84) 评论(0) 推荐(0)
摘要:1 /* 2 求连续的小写字母中小写字母的种数 3 */ 4 #include 5 using namespace std; 6 const int maxn=200+10; 7 int main() 8 { 9 int n; 10 char str[maxn]; 11 map ma; 12 cin>>n; 13 cin>>str; 1... 阅读全文
posted @ 2017-09-26 20:28 Kearon 阅读(67) 评论(0) 推荐(0)