摘要: 一、cin>> 用法1:输入一个数字或字符 #include <iostream> using namespace std; int main () { int a,b; cin>>a>>b; cout<<a+b<<endl; } 用法2:接收一个字符串,遇“空格”、“TAB”、“回车”就结束 #i 阅读全文
posted @ 2024-03-08 19:37 WHUStar 阅读(209) 评论(0) 推荐(0)
摘要: 网站:https://www.luogu.com.cn/problem/P8630 代码如下: 主要是用了map的思想 #include<iostream> #include<vector> #include<algorithm> #include<math.h> #include<string> 阅读全文
posted @ 2024-03-08 17:52 WHUStar 阅读(28) 评论(0) 推荐(0)