Codeforces 1088A Ehab and another construction problem

超声波熔接结构设计.pdf 技术分享 立即下载
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <math.h>
#include <string>
#include <algorithm>
#include <vector>

using namespace std;

int x;

int main() {
	scanf("%d", &x);
	if (x == 1) {
		printf("-1\n");
	}
	else if (x % 2 == 1) {
		printf("%d 2\n", x - 1);
	}
	else {
		printf("%d 2\n", x);
	}
	return 0;
}

 

高校院所评估创新战略联盟成员贡献度,有哪些量化的评价模型或工具?.docx 科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。 立即下载

相关推荐

5分钟搞定kkFileView 4.4.0 Docker部署:小白也能上手的完整配置流程

本文提供了一份针对kkFileView 4.4.0版本的Docker部署完整指南。通过使用预构建的Docker镜像,即使是新手也能在5分钟内完成文件预览服务的搭建,涵盖从环境准备、镜像拉取、容器启动到服务验证的全流程,并分享了进阶配置与生产环境优化建议。

mango的博客 538

Codeforces 1088A Ehab and another construction problem (水)

#include&lt;iostream&gt; #include&lt;cstring&gt; #include&lt;cstdio&gt; #include&lt;algorithm&gt; #include&lt;vector&gt; #include&lt;set&gt; #include&lt;map&gt; #include&lt;queue&gt; #include

STOP 384

伪距单点定位推导+DOP值分析(附matlab仿真代码)

伪距单点定位公式推导、DOP值分析与matlab仿真分析

shannanshouyin的博客 2519

Ehab and another construction problem(水题)

Given an integer xx, find 2 integers aa and bb such that: 1≤a,b≤x1≤a,b≤x bb divides aa (aa is divisible by bb). a⋅b&gt;xa⋅b&gt;x. ab&lt;xab&lt;x. Input The only line contains the integer xx (1≤x≤100)(...

starlet_kiss的博客 631

别再傻傻分不清!直流有刷、无刷、步进电机,3分钟教你根据项目需求选对电机

本文深入解析直流有刷电机、无刷电机和步进电机的核心差异与应用场景,提供电机选型的黄金法则。通过性能参数对比、成本分析及典型应用案例,帮助工程师根据项目需求精准选择电机类型,避免常见选型误区。特别适合机器人、3D打印等领域的开发者参考。

weixin_29183637的博客 346

apache 403错误 Forbidden解决方法

当网页打开提示以下错误时,即出现了403错误。 Forbidden You don't have permission to access / on this server. 403 Forbidden 资源不可用。服务器理解客户的请求,但拒绝处理它。通常由于服务器上文件或目录的权限设置导致。通常情况可能(但不限于此)的原因有: 原因1:apache配置文件中没有对站点目录的权限许可,这通...

lmseo5hy的博客 1504

1088A. Ehab and another construction problem

A. Ehab and another construction problem time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Given an integer xx, find 2 integers aa a...

memory_qianxiao的博客 1040

【教程4>第4章>第15节】基于FPGA的costas环的设计构架

目录1.costas环的整体实现结构2. FPGA设计构架3.参考文献 Costas 环是一种用于载波同步的闭环反馈控制系统,主要应用于通信系统中的相干解调。其基本原理是通过鉴相器(Phase Detector,PD)比较接收信号与本地载波信号的相位差,将这个相位差信息经过环路滤波器(Loop Filter,LF)滤波后,去控制数控振荡器(Numerically Controlled Oscillator,NCO)的输出频率和相位,使得本地载波能够跟踪接收信号的载波,最终实现载波同步。我们在《F

FPGA/MATLAB学习教程/源码/项目合作开发 573

Ehab and another construction problem

https://codeforces.com/contest/1088/problem/A /* *@Author: STZG *@Language: C++ */ #include &lt;bits/stdc++.h&gt; #include&lt;iostream&gt; #include&lt;algorithm&gt; #include&lt;cstdlib&gt; #includ...

无限迭代中...... 784

在 SAP ECC 中定义 ledger 时遇到 “Define exactly one leading ledger“(消息号 FAGL_LEDGER_CUST012)的错误

摘要:SAP系统要求必须且只能定义一个主导分类账(Leading Ledger)。当出现错误消息FAGL_LEDGER_CUST012时,需通过事务码FINSC_LEDGER或SPRO路径检查分类账配置,确保仅有一个分类账被标记为"LeadingLedger",其余设为"Non-leadingLedger"。主导分类账是SAP默认用于标准报表的核心分类账,修改配置需谨慎以免影响已有数据。若问题未解决,建议检查未完成配置或查阅SAP Notes获取解决方案。

金牌架构师 805

手把手教你学Simulink——基于Simulink的电压型 vs 电流型整流器性能对比

摘要:本文基于Simulink平台对比分析了电压型整流器(VSR)和电流型整流器(CSR)的性能差异。VSR采用电容滤波,具有高功率因数(PF>0.99)、低输入电流THD(<3%)等优势,但动态响应较慢;CSR采用电感滤波,动态响应快(<0.05s),但THD较高(5%~8%)。研究建立了统一测试平台,详细对比了两者在稳态性能、动态响应、效率等方面的差异,并给出了控制算法实现和参数优化建议。通过量化分析,为电力电子工程师提供了拓扑选型依据,可根据恒压/恒流需求选择最优方案,有效缩短开发周

MHD0815的博客 175

Codeforces ~ 1088A ~ Ehab and another construction problem (暴力)

题意 给你一个x,让你求得一组a和b,满足a∗b&amp;gt;x,a/b&amp;lt;x,a%b=0a*b&amp;gt;x,a/b&amp;lt;x,a\%b=0a∗b&gt;x,a/b&lt;x,a%b=0,输出一组合法的a和b,如果没有输出-1. 思路 n2n^2n2暴力,或者O(1)。输出n-n%2和2. #include&lt;bits/stdc++.h&gt; using nam...

张松超的博客 697

结合MATLAB/Simulink和多体动力学仿真软件UM(Universal Mechanism),建立高速列车轴箱轴承的动力学模型,并通过联合仿真分析其正常运行特性和典型故障模式

高速列车是现代交通运输的重要组成部分,其运行速度高、载客量大,对安全性和可靠性提出了极高的要求。轴箱轴承作为高速列车的关键部件之一,承担着传递载荷和支撑车轴的重要作用。然而,由于长期运行在高速、重载和复杂工况下,轴箱轴承容易出现疲劳磨损、润滑失效和裂纹等故障,从而影响列车的安全性。本项目旨在结合MATLAB/Simulink和多体动力学仿真软件UM(Universal Mechanism),建立高速列车轴箱轴承的动力学模型,并通过联合仿真分析其正常运行特性和典型故障模式。

xiaoheshang_123的博客 341

Codeforces 1088A - Ehab and another construction problem

Codeforces 1088A - Ehab and another construction problem 题解链接 https://lucien.ink 题目链接 https://codeforces.com/contest/1088/problem/A 题目 Given an integer xxx, find 2 integers aaa and bbb such that: 1...

LucienShui 755

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

迈瑞BS系列全自动生化分析仪LIS协议接口手册(内含HL7和ASTM)

迈瑞BS系列全自动生化分析仪LIS协议接口手册,内含HL7和ASTM)

CodeForces - 1088A Ehab and another construction problem 水

A. Ehab and another construction problem time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Given an integer xx, find 2 integers aa a...

pxlsdz的博客 611

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

Codeforces Round #525 (Div. 2) Ehab and another construction problem CodeForces - 1088A

按照题意来说,答案应该不唯一,所以直接暴力写就行了,不用想太多 #include&lt;stdio.h&gt; #include&lt;iostream&gt; #include&lt;algorithm&gt; #include&lt;cmath&gt; #include&lt;cstring&gt; #include&lt;string.h&gt; #include&lt;queue&gt

c3po 229

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

Codeforces Round #525 (Div. 2)A. Ehab and another construction problem

A. Ehab and another construction problem 题目链接:https://codeforc.es/contest/1088/problem/A 题意: 给出一个x,找出这样的a,b满足:1<=a,b<=x,并且a%b=0,a/b<x,a*b>x。 题解: 赛后发现,除开x=1的情况,其它情况a=b=x就可以满足条件了.....

dft539533的博客 159

Codeforces Round #525 (Div. 2)题解

Codeforces Round #525 (Div. 2)题解 题解 CF1088A 【Ehab and another construction problem】 依据题意枚举即可 # include <bits/stdc++.h> int main() { int x; scanf("%d", &x); for(int i = 1; i <...

weixin_34267123的博客 177

Coderforces Round #525(div2)1088A - Ehab and another construction problem

思路:没什么思路,就是纯暴力匹配 #include &lt;bits/stdc++.h&gt; using namespace std; const int INF = 0x3f3f3f3f; int main() { int a, b, x; scanf("%d", &amp;x); for(int i = 1; i &lt;= 100 &amp;&amp; i &l...

独钓门前月 597

CF473 DIV2 D. Mahmoud and Ehab and another array construction task

本题基于一种贪心的思路,即:能不改就不改,但是一旦改了以后,后面的都改;具体而言,就是从前往后扫,如果当前位置的数不与前面的数冲突的话,那么我们就不改动他。但是,一旦有一个数冲突了,根据题意我们肯定要换一个更大的数,那么此时整个序列肯定就比原序列大了,那么后面的数我们肯定都要换尽可能小的。 同时,还要考虑的一个问题是,如何保证后面选的数不与前面已经选过的数冲突。方法非常暴力:我们预处理出每个数的...

HumveeA6的博客 477

Codeforces-959D Mahmoud and Ehab and another array construction task(贪心)

题意: 给定数组a,求大于或者等于数组a字典序的数组b,满足任意i,j,gcd(bi, bj) = 1。并且是在所有满足条件中的字典序最小的一个。 思路: 任意一对数互质,可以通过标记其质因子来解决,在找到第一个违背互质的数时,只需要找出大于该数的最小的一个与前面所有数互质的数,在此之后,要想保证字典序最小,便是所有可用的质数从小向大取。 代码: #include using name

yo_bc的博客 666

Codeforces Round #525 (Div. 2) A. Ehab and another construction problem

题解 题目大意 给一个n找到满足四个条件式的a和b a和b可以相等 除了1都可以找到a=b=n这种情况满足条件 AC代码 #include &lt;stdio.h&gt; #include &lt;bits/stdc++.h&gt; using namespace std; typedef long long ll; const int INF = 0x3f3f3f3f; int main()...

CaprYang的博客 359

Codeforces 959D D. Mahmoud and Ehab and another array construction task

一个老学长让我做的一个好题,刚开始题意没读对,想了好长时间,没想法,后来由一个女生给我讲了一下,我才有了想法, 虽然T了N遍,总算过了,下面给大家分享一下。D. Mahmoud and Ehab and another array construction tasktime limit per test3 secondsmemory limit per test256 megabytesinput...

Amo丶 450

codeforces 959-D. Mahmoud and Ehab and another array construction task(素数打表+乱搞)

http://codeforces.com/problemset/problem/959/D 题目大意: 给出一个串数a,要求构造一个相同个数的数组b,保证b中的数互相互素。 解题思路: 首先素数打表,然后枚举a数组中的数,判断是否都在数组中,然后分两类处理即可; #include&lt;iostream&gt; #include&lt;vector&gt; #in...

HJ 723

cf1088D. Ehab and another another xor problem(思维)

题意 题目链接 系统中有两个数\((a, b)\),请使用\(62\)以内次询问来确定出\((a, b)\) 每次可以询问两个数\((c, d)\) 若\(a \oplus c &gt; b \oplus d\)返回\(1\) 若\(a \oplus c = b \oplus d\)返回\(0\) 若\(a \oplus c &lt; b \oplus d\)返回\(-1\) 保证/需要保证\(0...

weixin_34177064的博客 153

Codeforces 1088D - Ehab and another another xor problem - 交互题

Codeforces 1088D - Ehab and another another xor problem 题解链接 https://lucien.ink 题目链接 https://codeforces.com/contest/1088/problem/D 题目 This is an interactive problem! Ehab plays a game with Laggy. Eh...

LucienShui 966
上一篇: Leetcode 657 Robot Return to Origin
下一篇: Leetcode 942 DI String Match
polanwind
博客等级 码龄10年 5粉丝 246原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值