码迷,mamicode.com
首页 >  
搜索关键字:out of memory    ( 64101个结果
素数判定 - 哈尔滨工业大学
题目描述 Time Limit: 1000 ms Memory Limit: 256 mb 给定一个数n,要求判断其是否为素数(0,1,负数都是非素数)。 输入输出格式 输入描述: 测试数据有多组,每组输入一个数n。 输出描述: 对于每组输入,若是素数则输出yes,否则输入no。 输入输出样例 输入 ...
分类:其他好文   时间:2021-03-16 13:20:31    阅读次数:0
matplotlib legend的位置
font2 = {'family': 'Times New Roman', 'weight': 'normal', 'size': 12, } ax.legend(loc='lower center', bbox_to_anchor=(0.5, 1), fancybox=True, shadow=T ...
分类:其他好文   时间:2021-03-16 12:03:49    阅读次数:0
DP —— 数字三角形模型
DP——数字三角形模型 0. 数字三角形 题目地址: 题目思路: 二维基础DP,每个 \(f[i,j]\) 都是从 \(f[i-1,j-1]\) 和 \(f[i-1,j]\) 转移过来,取 \(max\) ,最后循环最下层,取 \(max\) 即为答案 代码: #include<iostream> ...
分类:其他好文   时间:2021-03-16 11:57:25    阅读次数:0
Java语法基础
Java基础语法 标识 单行标注 // 多行标注 /* */ 多做标注 关键字 public class Demo02 { public static void main(String[] args) { String ab="c"; System.out.print(ab); } } 注意语法中符 ...
分类:编程语言   时间:2021-03-16 11:57:10    阅读次数:0
简洁表达式
public class SimpleExpressDemo02 { public static void main(String[] args) { int a=10,b=6; System.out.println("改变之前的数是:a=" + a + ",b=" + b); a-=b++; // ...
分类:其他好文   时间:2021-03-16 11:51:45    阅读次数:0
类中pthread_create()的线程入口函数
在类成员函数中如何调用pthread_create()呢? #incldue <pthread.h> int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), v ...
分类:编程语言   时间:2021-03-16 11:47:13    阅读次数:0
高精度模板
class BigInt{ public: vector<int> a; BigInt operator+(const BigInt& b) { BigInt r; int s=max(a.size(),b.a.size()); for(int i=0;i<s;i++) { r.a.push_bac ...
分类:其他好文   时间:2021-03-16 11:45:03    阅读次数:0
Verilog 阻塞赋值与非阻塞赋值(二)
问题一 在这个程序下: //d=a+b //out=d+c always @(posedge Clk or negedge Rst_n) begin if(!Rst_n) out = 2'b0; else begin d <= a + b; out <= d + c; end end 问题:出现了o ...
分类:其他好文   时间:2021-03-15 11:35:38    阅读次数:0
2019 ICPC Northwestern European(6/11)
2019-2020 ICPC Northwestern European Regional Programming Contest (NWERC 2019) A. Average Rank 大意: n 个参赛选手将进行 w 轮的比赛,每轮比赛都会有一些选手加一分,选手按照分数从大到小排名(分数相等并 ...
分类:其他好文   时间:2021-03-15 11:33:30    阅读次数:0
C++ vector动态容量变化
Tips:也可以尝试对deque,list进行类似的实验以加深理解。 #include <iostream> #include <vector> //#include <deque> using namespace std; int main() { vector <int> a; for(int ...
分类:编程语言   时间:2021-03-15 11:09:37    阅读次数:0
64101条   上一页 1 ... 42 43 44 45 46 ... 6411 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!