码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
【Codeforces Round #639 (Div. 2) C】Hilbert's Hotel
题目链接 点我呀 翻译 一个旅馆内有无限多个房间, 每个房间里面都只有一个人住。 这些房间和所有的整数对应。 现在对于房间号为整数 \(k\) 的房间, 里面的人要移动到 \(k + a_{k\ mod\ n}\) 号房间。 给你 \(n\), 和整型数组 \(a\) , 问你移动之后, 是不是每个 ...
分类:其他好文   时间:2020-06-21 14:08:05    阅读次数:64
c++ 1-7 new与delete的运用
1 //用new动态分配float型和long型内存单元,给这些内存单元赋值,并在屏幕上显示它们的值,最后用delete释放 2 #include<iostream> 3 using namespace std; 4 int main() 5 { 6 float *pf=new float; 7 c ...
分类:编程语言   时间:2020-06-21 13:46:31    阅读次数:41
原型模式
名称: 原型模式(prototype) 问题: Specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype. 解决方案: 1 ...
分类:其他好文   时间:2020-06-21 13:42:56    阅读次数:56
1031 Hello World for U (20分)
1 #include <iostream> 2 #include <cstdio> 3 using namespace std; 4 int main() 5 { 6 string s; 7 cin >> s; 8 int N = s.size(); 9 int n1=(N+2)/3, n3 = ( ...
分类:其他好文   时间:2020-06-21 11:31:58    阅读次数:46
用NVIDIA-NGC对BERT进行训练和微调
用NVIDIA-NGC对BERT进行训练和微调 Training and Fine-tuning BERT Using NVIDIA NGC 想象一下一个比人类更能理解语言的人工智能程序。想象一下为定制的域或应用程序构建自己的Siri或Google搜索。 Google BERT(来自Transfor ...
分类:其他好文   时间:2020-06-21 10:11:01    阅读次数:88
四边形不等式
四边形不等式 当$a<=b<=c<=d$时有$w(a,b)+w(b,d)<=w(a,d)+w(b,c)$ 也有$w(i,j)+w(i+1,j+1)<=w(i+1,j)+w(i,j+1)$ 区间包含 当$a<=b<=c<=d$时有$w(b,c)<=w(a,d)$ 性质 \(f_{i,j}=\min(f ...
分类:其他好文   时间:2020-06-21 10:04:08    阅读次数:48
顺序表的插入与删除
1.顺序表的插入 数组的长度用引用型 #include<iostream> using namespace std; #define MaxSize 50 int inserElem(int a[],int &length,int p,int value){ if(p<0 || p>length | ...
分类:其他好文   时间:2020-06-21 09:55:39    阅读次数:50
HDU4283 You Are the One
题目:You Are the One 网址:http://acm.hdu.edu.cn/showproblem.php?pid=4283 Problem Description The TV shows such as You Are the One has been very popular. I ...
分类:其他好文   时间:2020-06-20 23:47:01    阅读次数:57
A 1144 The Missing Number (20分)
一、技术总结 即判断给出一串数字中缺少的最小正整数 直接可以遍历判断n个数字中是否在一串数字中是否出现,如果没有直接输出 但是会出现一种情况,是恰好给出的数字是1~n,这是需要再判断一下了遍历的次数是否等于n,如果是的话直接输出n+1 二、参考代码 #include<iostream> #inclu ...
分类:其他好文   时间:2020-06-20 22:22:15    阅读次数:64
Winform中Timer应用+ 随机字母-
Form1.CS using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Syst ...
分类:Windows程序   时间:2020-06-20 21:59:32    阅读次数:89
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!