C++学习笔记
塘朗老实人
计算机应用技术硕士研究生在读,研究方向推荐系统+迁移学习
展开
-
牛客网OJ输入输出笔记
1、A+B #include<stdio.h> int main(void) { long long int a,b,c; while(scanf("%lld",&a)!=EOF) { scanf("%lld", &b); c = a+b; printf("%lld\n", c); } return 0; } #include<stdio.h> int main() {原创 2020-08-24 17:04:21 · 371 阅读 · 0 评论 -
C++刷题笔记:C++标准库中各种数据结构的用法(栈、向量、字典、集合)
1.以LeetCode中第20题“有效的括号”为例 class Solution { public: bool isValid(string s) { unordered_map<char,int> m{{'(',1},{'[',2},{'{',3}, {')',4},{']',5},{'}',6}}; stack<char> st; bool istrue=.原创 2020-05-14 22:37:30 · 1450 阅读 · 1 评论