![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法ACM
Peace_day
本人擅长Ai、Fw、FI、Br、Ae、Pr、Id、Ps、CDR等软件的安装与卸载,
精通CSS、JavaScript、PHP、ASP、C、C++、C#、Java、VB、Go、Ruby、Perl、Lisp、python、Objective-C、ActionScript、Pascal、spss、sas等单词的拼写,
熟悉Windows、Linux、Mac、Android、IOS、WP8等系统的使用
展开
-
jS刷题常见语法
这里写自定义目录标题Map相关new Map遍历 mapstring number转换string 数组转换 Map相关 new Map let myMap = new Map(); let keyObj = {}; let keyFunc = function() {}; let keyString = 'a string'; // 添加键 myMap.set(keyString, "和键'a string'关联的值"); myMap.set(keyObj, "和键keyObj关联的值"); my原创 2020-12-14 10:24:52 · 194 阅读 · 0 评论 -
1001. 害死人不偿命的(3n+1)猜想 (15)
很简单没什么说的。 #include<iostream> using namespace std; int main(){ int n; cin >> n; int flag = 0; while (n != 1){ if (n % 2 == 0) n/=2; else n = (3 * n + 1) / 2...原创 2018-04-22 08:53:51 · 84 阅读 · 0 评论 -
1002. 写出这个数 (20)
#include<bits/stdc++.h> using namespace std; char* name[]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"}; int main(){ char a[105原创 2018-04-22 08:58:30 · 117 阅读 · 0 评论 -
计算机考研复试-1成绩排序
#include <iostream> #include <vector> #include <algorithm> #include <string> using namespace std; struct student{ string name; int score; }; bool cmp0(c...原创 2018-04-21 12:55:49 · 320 阅读 · 0 评论 -
快速排序的实现
#include<bits/stdc++.h> using namespace std; int a[100]; int size=0; int solve(int s,int l); void Qsort(int s,int l){ if(s<l){ int mid=solve(s,l); Qsort(s,mid-1); ...原创 2018-08-04 09:46:17 · 156 阅读 · 0 评论 -
Leetcode 13. 罗马数字转整数 map用法
class Solution { public: int romanToInt(string s) { map<char,int> map1; map1['I']=1; map1['V']=5; map1['X']=10; map1['L']=50; map1['C']=100; map1['D']=500; map1['M']=1000; int...原创 2019-08-13 13:04:59 · 156 阅读 · 0 评论