摘要:
题目链接http://www.dotcpp.com/oj/problem1097.html ac代码: #include<iostream> using namespace std; int n; int a[110][110]; int main() { while (cin >> n){ int 阅读全文
摘要:
题目链接http://www.dotcpp.com/oj/problem1095.html?sid=760729&lang=1#editor 这个题目只是一道简单的模拟题,为啥我还要贴出来,因为这输出实在是太坑了,留个纪念 ac代码: #include<iostream> #include<vect 阅读全文
摘要:
这是我第一次在Leetcode上写题,说实话,第一次不是太适应 题目链接https://leetcode-cn.com/problems/two-sum/ 没想到这么个"简单题"的解法还能这么巧妙 一、暴力 复杂度O(n^2) 用时320ms,内存消耗9.4MB class Solution { p 阅读全文