作业工具
Flintx
鲜衣怒马少年时
展开
-
广义欧几里得除法求sa+tb=(a,b)
/**author : flint *time : 2015-3-16 21:34:21*ver 0.1*/#include<iostream> #include<cstdio> int s[1000];int t[1000];int q[1000];int r[1000];using namespace std; int main(){ int a,b; p原创 2015-03-24 23:15:28 · 10172 阅读 · 0 评论 -
模重复平方计数法的C++实现
/** @author Novicer* language : C++/C*/#include<iostream>#include<sstream>#include<fstream>#include<vector>#include<list>#include<deque>#include<queue>#include<stack>#include<map>#include<原创 2015-03-24 23:12:21 · 2128 阅读 · 0 评论 -
python · 一行流
筛素数#一行筛素数(FP)>>pr = list(filter(lambda x : all(map(lambda p : x % p != 0 , range(2, x))), range(2, 101)))>>pr[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83,原创 2015-11-24 21:40:16 · 1369 阅读 · 0 评论 -
C语言代码格式自动化(python实现)
这永远是个大坑。。在不负责任的课堂作业上投入过分的精力是一件很愚蠢的事。。#!usr/bin/env python3#coding: utf-8import reKeywordsList = ['do', 'for', 'while', 'if', 'else']# DoubleOpList = [r'\+', r'\-', r'\*', r'/', r'%',#原创 2016-01-05 23:03:26 · 1968 阅读 · 1 评论 -
虚拟机Linux环境下使用无线网卡
环境 实体机:Windows 10 虚拟机:Ubuntu 14.04 无线网卡:Tenda W311M V3.0 虚拟机软件:Vmware 12.1.1步骤插上无线网卡,确认连接无误。虚拟机设置: 将无线网卡与主机断开连接,并连接进虚拟机: [虚拟机] -> [可移动设备] -> [对应无线网卡] -> [连接] 驱动下载 找对应型号下载即可下载驱动后原创 2016-08-02 14:49:59 · 16803 阅读 · 2 评论