题目1277​​题目信息​​​​运行结果​​​​本题排行​​​​讨论区​​ Decimal integer conversion 1000 ms  |  内存限制: 65535 The first line of the input contains one integers T, which is the nember of test
原创 2022-08-09 22:27:14
101阅读
# 如何实现“1277 mysql” ## 整体流程 为了帮助你理解如何实现“1277 mysql”,我将整个流程分解成以下步骤: | 步骤 | 描述 | | ---- | ---- | | 1 | 连接到MySQL数据库 | | 2 | 创建数据库 | | 3 | 创建表 | | 4 | 插入数据 | | 5 | 查询数据 | | 6 | 更新数据 | | 7 | 删除数据 | ## 每
原创 3月前
22阅读
Cops and ThievesTime Limit: 1000msMemory Limit: 16384KBThis problem will be judged onUral. Original ID:127764-bit integer IO format:%lld Java class na...
转载 2015-11-01 22:00:00
12阅读
2评论
Description: Hooray! Polycarp turned n years old! The Technocup Team sin
原创 2023-02-03 10:06:18
91阅读
题目传送门 #include <bits/stdc++.h> using namespace std; typedef long long LL; const int N = 100010; /* 1.区间修改 - 乘 加 3.区间查询 存储信息: 1.区间范围l,r 2.加的懒标记add 3.乘的
原创 2022-05-01 22:28:50
92阅读
#include <bits/stdc++.h>using namespace std;const int maxn = 210;const int maxm = 100010;const int inf = 0x3f3f3f3f;struct G{ int v, cap, next; G() {} G(int v, int cap, int next) : v(v)
原创 2022-04-19 09:56:48
76阅读
给你一个序列s和n个限制,(a,b)表示s[a]#includeusing namespace std;set f[10010];int n,m,h,k,s[10010];int main(){ scanf("%d%d%d%d",&n,&k,&h,&m); s[0]=...
转载 2017-09-19 20:38:00
25阅读
2评论
给你一个序列s和n个限制,(a,b)表示s[a]#includeusing namespace std;set f[10010];int n,m,h,k,s[10010];int main(){ scanf("%d%d%d%d",&n,&k,&h,&m); s[0]=...
转载 2017-09-19 20:38:00
34阅读
2评论
Description:
原创 2023-02-03 10:06:13
82阅读
题目描述 Description Sheldon and Leonard are physicists who are
一、内容题意:凑出每行每列的元素都不相同的最大矩阵(元素最多)。二、思路由于每行不能一样,所以我们选取i行,那么最多可以选取i个相同的值。 列可以随意增加,行需要限制一下。三、代码#include <cstdio>#include <algorithm>using namespace std;const int N = 4e5 + 5;struct n...
原创 2022-01-06 17:47:35
115阅读
Description:
原创 2023-02-03 10:06:07
114阅读
一、内容题意:问1-n中有多少个数是全部相同的数字组成的。如111,222,333,1,2,3,4。。。二、思路每次将n除以相同的基数 和 9进行比较。三、代码#include <cstdio>#include <algorithm>using namespace std;typedef long long ll;int t, n, ans;int ...
原创 2021-08-27 14:22:07
245阅读
一、内容题意:凑出每行每列的元素都不相同的最大矩阵(元素最多)。二、思路由于每行不能一样,所以我们选取i行,那么最多可以选取i个相同的值。 列可以随意增加,行需要限制一下。三、代码#include <cstdio>#include <algorithm>using namespace std;const int N = 4e5 + 5;struct n...
原创 2021-08-27 14:22:14
35阅读
一、内容 题意:问1-n中有多少个数是全部相同的数字组成的。如111,222,333,1,2,3,4。。。 二、思路 每次将n除以相同的基数 和 9进行比较。 三、代码 #include <cstdio> #include <algorithm> using namespace std; typedef long long ll; int t, n, ans; int ...
原创 2022-01-06 17:23:32
88阅读
一、内容There are n cities in Berland and some pairs of them are connected by two-way roads. It is guaranteed that you can pass from any city to any other, moving along the roads. Cities are numerated fr...
原创 2022-01-06 17:47:35
190阅读
题目链接:acm.hdu.edu.cn/showproblem.php?pid=1277题目大意:给
原创 2022-11-02 15:05:27
43阅读
一、内容题意:将所有的偶数都变成奇数,问最少需要多少步。每次选定一个偶数,然后所有相同的数都除2.二、思路如果当前的数不是偶数,就用map记录当前偶数,如果已经访问过就不用再除2了,如果没有访问过那么就一直除2。三、代码#include <cstdio>#include <unordered_map>#include <algorithm>u...
原创 2021-08-27 14:22:10
170阅读
一、内容 题意:将所有的偶数都变成奇数,问最少需要多少步。每次选定一个偶数,然后所有相同的数都除2. 二、思路 如果当前的数不是偶数,就用map记录当前偶数,如果已经访问过就不用再除2了,如果没有访问过那么就一直除2。 三、代码 #include <cstdio> #include <unordered_map> #include <algorithm> u...
原创 2022-01-06 17:23:33
59阅读
一、内容题意:不能出现one 或者 two 这2个字符串。问最少需要删除那些字符,并输出删除的位置。二、思路我们只需要删除one的n 或者是two的w就可以让一个字符串不出现这2个串。特殊情况:当 twone这种情况时,我们需要删除的是 o 这个字符。三、代码#include <cstdio>#include <cstring>#define min(a...
原创 2021-08-27 14:22:08
118阅读
  • 1
  • 2
  • 3
  • 4
  • 5