CF1555 A: 推公式题,每一个都是 \(2.5\) 的时间,那么我们尽量用 \(10\) 。 如果是偶数,那么直接可以凑出来,如果是奇数,就 \(+1\) 变成偶数来凑,再考虑特殊情况即可。 #include<bits/stdc++.h> using namespace std; #defin ...
转载 2021-08-26 20:00:00
143阅读
2评论
1、 TNS:listener does not currently know of service requested in connect descriptor 数据库连接出错
转载 2018-07-11 16:13:00
82阅读
这个分好段就行,#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;int main(){ int k; int n;
原创 2023-07-27 18:41:11
57阅读
2011-12-16 01:37:28地址:http://acm.hdu.edu.cn/showproblem.php?pid=1555题意:中文。。。mark:2WA,老老实实模拟,想用除法和取mod算,必死。不可借钱,但是结果可以迭代。代码:# include <stdio.h>int main (){ int m, k, ans ; while (~scanf ("%d%d", &m, &k) && (m||k)) { ans = 0 ; while (m) { ans ++ ; m-...
转载 2012-01-06 16:34:00
57阅读
题意:有n个点在一个坐标系内,给出了第一个点的高度H,所有点高度都满足Hi = (H(i-1) +
原创 2023-06-29 00:07:10
31阅读
#includeintmain(){   int n,m;   int sum;   while(scanf("%d%d",&n,&m))   {       sum=0;       if(n==0
原创 2022-08-23 07:15:20
46阅读
[oracle@c2 ~]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Sat Oct 22 15:57:41 2011 Copyright (c) 1982, 2005, Oracle.  All rights reserved. Connected to an idle instance.
原创 2011-10-22 16:16:56
648阅读
转载:Oracle Linux: Error "Missing Or Invalid IPv4 Prefix '0' On Linux Server" (文档 ID 1522095.1)Applies to:  Linux OS - Version Oracle Linux 5.5 and laterLinux x86-64SymptomsNetwork manager thr
转载 2021-10-29 11:20:07
164阅读
1,oracle jdbcHTTP Status 500 - Incorrect result size: expected 1, actual 02015-03-31 00:03:58,250 SQL Error: 129, SQLState: 720002015-03-31 00:03:58...
原创 2021-12-27 10:40:03
364阅读
贪心,按t+w排序维护不一定放到拖车上的大根堆。
转载 2016-09-05 16:14:00
52阅读
2评论
在Kubernetes(K8S)环境中部署Oracle数据库时,可能会遇到一些 Oracle Net Admin Error 的问题,这会影响数据库的正常运行。在这篇文章中,我将向你介绍如何处理这种类型的错误。首先,让我们了解一下整个过程的流程,然后逐步进行详细说明。 步骤 | 操作 ------------|---------------------- Step 1
原创 2024-05-24 11:36:56
455阅读
题目地址:点击打开链接思路:水题AC代码:#include #includeusing namespace std;int main(){ int m,k; int sum,sum1,l; while(scanf("%d%d",&m,&k)) { if(m + k == 0) break;
原创 2022-08-04 09:02:57
41阅读
一道值得思考的数学题。 计算可知,做一块披萨的时间是 2.5 分钟,这在 3 个购买方案中一致。故此只需考虑怎样用 6 8 10 3 个数字组合出大于等于 \(n\) 且最小的数。 可以证明,这 3 个数可以组合成不小于 6 的所有偶数。证明如下: 对于不小于 6 的任意偶数 \(n\),它都可以被 ...
转载 2021-08-13 21:03:00
66阅读
2评论
//1555 #include#includemain(){ int s[9],flag; int i; while(~scanf("%d%d%d%d%d%d%d%d%d",&s[0],&s[1],&s[2],&s[3],&s[4],&s[5],&s[6],&s[7],&s[8])) { flag=0;//是否有不为0的系数的标志 for(i=0;i<
原创 2023-08-21 16:46:53
47阅读
Sat May 09 15:57:04 2020Non critical error ORA-48913 caught while writing to trace file "/u01/app/oracle/diag/rdbms/mdb/mdb/trace/mdb_dbrm_7134.trc"Er
原创 2022-07-13 14:59:21
321阅读
java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection ... Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection ... Caused by: java.net.ConnectException: Connection timed out: connect
原创 2021-09-06 12:54:32
6379阅读
1评论
Oracle Error:invalid entry size (expected 65620 but got 65748 bytes)
转载 2018-02-22 09:38:40
7869阅读
ORA-1555 解决方案 1、一致性导出     在将数据库的数据写入导出转存文件的过程中,Export一次读一个表。因此,尽管Export开始于一个指定的时间点,而各个表则读于不同的时间。在Export开始读表时,存储在那个表中的数据。由于太多表与其他表相关,所以用户在导出期间修改数据,就会引起导出的数据不一致。导出转储文件可能含有不一致的数据,例如在一个表中
转载 精选 2011-08-31 17:34:17
681阅读
LINK三种饼(6,8,106,8,106,8,10)的单位代价都是2.52.52.5考虑nnn为偶数时候当n<6n<6n<6特判掉否则,使用6,8,106,8,106,8,10一定可以恰好凑成nnn因为使用3,4,53,4,53,4,5去凑nnn是一个等价的问题,而且3,4,53,4,53,4,5可以凑成任何大于等于333的数考虑当nnn为奇数时此时不能恰好凑成nnn了,但是可以恰好凑成n−1n-1n−1然后为了凑成n−1n-1n−1买的饼一定存在不全为101010饼的方
原创 2022-02-06 14:14:29
18阅读
题目传送这题比赛的时候想出来了,挺高兴的。首先我们把区间按花费排序,然后用一个双指针扫描花费的最大值和最小值,那么在这之间的区间都可以选,而且随着最大值的增加,其最小值的指针必然是单调不减的,因此我们只要用一个数据结构,支持区间修改和查询是否完全被覆盖就行了。 那必然是线段树了,区间修改+查询最小值,如果大于\(0\),说明整个区间都被覆盖了。这题还有一点,就在于不同区间必须相交,而不是刚好满足
转载 2021-08-05 13:37:18
57阅读
  • 1
  • 2
  • 3
  • 4
  • 5