码迷,mamicode.com
首页 >  
搜索关键字:using temporary    ( 54256个结果
[哥俩好数字] ADPC
1 #include <iostream> 2 using namespace std; 3 4 long long f(int x ) 5 { 6 long long tot = 0; 7 while(x) 8 { 9 tot += x % 10; 10 x /= 10; 11 } 12 retu ...
分类:其他好文   时间:2021-03-16 13:51:43    阅读次数:0
loj10225迷路
题目描述 原题来自:SCOI 2009 Windy 在有向图中迷路了。 该有向图有 n 个节点,Windy 从节点 0 出发,他必须恰好在 t 时刻到达节点n-1 。 现在给出该有向图,你能告诉 Windy 总共有多少种不同的路径吗? 注意:Windy 不能在某个节点逗留,且通过某有向边的时间严格为 ...
分类:其他好文   时间:2021-03-16 13:42:59    阅读次数:0
Codeforces 1495F 搞了一上午的心得
Codeforces 1495F 搞了一上午的心得 不愧是div1的压轴题,真jr爽 这可比whk得劲多了! 约定 我们令题目中的 \(a_0=b_0=0\)。 \(i\) 的前驱:\(max(j:j<i,p_j>p_i)\) \(i\) 的后继:\(min(j:j>i,p_j>p_i)\) 如果 ...
分类:其他好文   时间:2021-03-16 11:49:46    阅读次数:0
0823. Binary Trees With Factors (M)
Binary Trees With Factors (M) 题目 Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree u ...
分类:其他好文   时间:2021-03-15 11:24:45    阅读次数:0
Northern Eurasia Finals Online 2020 L - Lookup Performance
处理了一年的边界问题 #include <bits/stdc++.h> using namespace std; const int N = 2e5 + 10; #define fi first #define se second #define sz(v) ((int)(v).size()) #d ...
分类:其他好文   时间:2021-03-15 11:18:36    阅读次数: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
LRU代码实现
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> PII; #define ls l,mid,rt<<1 #define rs mid+1,r,rt<<1|1 const ...
分类:其他好文   时间:2021-03-15 11:08:22    阅读次数:0
C++实现对本地文件加行号并输出到本地文件
#include <fstream> #include <strstream> using namespace std; int main(int argc,char*argv[]) { strstream textfile; ifstream in(argv[1]); textfile << in ...
分类:编程语言   时间:2021-03-15 11:07:17    阅读次数:0
MySQL长时间不登录密码过期解决办法
MySql管理工具 Navicat for MySql的时候,弹出了一个1862 - MySql Your password has expired.To log in you must change it using a client that supports expired password解 ...
分类:数据库   时间:2021-03-15 10:43:19    阅读次数:0
c# 线程池多任务处理并返回值
先新建一个封装类 包含 manual和返回值 using System;using System.Threading; public class ThreadReturnData { public ManualResetEvent manual; public string res; public ...
分类:编程语言   时间:2021-03-12 14:24:55    阅读次数:0
54256条   上一页 1 ... 31 32 33 34 35 ... 5426 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!