摘要:
题目链接:https://www.luogu.com.cn/problem/P3741 注意:进行一次操作可能会让原有的“VK”减少 AC代码: 1 #include <bits/stdc++.h> 2 using namespace std; 3 int main(){ 4 int size; 5 阅读全文
posted @ 2020-06-13 22:15
Xinaop
阅读(106)
评论(0)
推荐(0)
摘要:
链接:https://www.luogu.com.cn/problem/P1957 知识点: 1、字符串转整型 1 int zhuan(string a){ 2 int ans1 = 0; 3 for(int i = a.size()-1;i>=0;i--){ 4 int h = a[i]-'0'; 阅读全文
posted @ 2020-06-13 22:09
Xinaop
阅读(183)
评论(0)
推荐(0)
摘要:
一、size/length函数 作用:获取字符串长度 用法: s.size() 或 s.length() 二、find函数 作用:对于一个字符串s,查找s中是否有一个子串存在 用法: string s; s = "hello baby"; s.find("hello")//结果是零,表示在第零个位置 阅读全文
posted @ 2020-06-13 21:57
Xinaop
阅读(51)
评论(0)
推荐(0)

浙公网安备 33010602011771号