当前位置:网站首页>D24:divisor and multiple (divisor and multiple, translation + solution)
D24:divisor and multiple (divisor and multiple, translation + solution)
2022-07-03 23:14:00 【Aggressive Wenwen】
The original title is :OpenJudge - 24:Divisor and Multiple
translate :
describe : Given D and M,D yes A、B The divisor of ,M yes A、B Multiple . seek A and B;
Input : Two no more than 100 The positive integer D and M;
Output : Two integers A and B.
Code :
#include<iostream>
using namespace std;
int main()
{
int d,m,i,f=1;
cin>>d>>m;
for(int i=2*d;i<m;i+=d)
if(m%i==0){
if(f){
cout<<i<<" ";
f=0;
}
else{
cout<<i;
break;
}
}
return 0;
}边栏推荐
- Interesting 10 CMD commands
- How the computer flushes the local DNS cache
- IO flow review
- C # basic knowledge (2)
- [untitled]
- Text replacement demo
- The 2022 global software R & D technology conference was released, and world-class masters such as Turing prize winners attended
- [Happy Valentine's day] "I still like you very much, like sin ² a+cos ² A consistent "(white code in the attached table)
- Qtoolbutton available signal
- Hcip day 16 notes
猜你喜欢

Unity shader visualizer shader graph

A preliminary study on the middleware of script Downloader
![[Android reverse] application data directory (files data directory | lib application built-in so dynamic library directory | databases SQLite3 database directory | cache directory)](/img/b8/e2a59772d009b6ee262fb4807f2cd2.jpg)
[Android reverse] application data directory (files data directory | lib application built-in so dynamic library directory | databases SQLite3 database directory | cache directory)

Format cluster and start cluster

The difference between single power amplifier and dual power amplifier

How to understand the gain bandwidth product operational amplifier gain

Schematic diagram of crystal oscillator clock and PCB Design Guide

Go Technology Daily (2022-02-13) - Summary of experience in database storage selection

Runtime. getRuntime(). totalMemory/maxMemory()

User login function: simple but difficult
随机推荐
How to quickly build high availability of service discovery
Sort merge sort
Pandaoxi's video
Les sociétés de valeurs mobilières dont la Commission d'ouverture d'un compte d'actions est la plus faible ont ce que tout le monde recommande.
MLX90614 driver, function introduction and PEC verification
Programming language (1)
How to quickly build high availability of service discovery
股票开户佣金最低的券商有哪些大家推荐一下,手机上开户安全吗
Teach you to easily learn the type of data stored in the database (a must see for getting started with the database)
"Learning notes" recursive & recursive
. Net ADO splicing SQL statement with parameters
Shell script three swordsman awk
[Android reverse] use the DB browser to view and modify the SQLite database (copy the database file from the Android application data directory | use the DB browser tool to view the data block file)
Summary of fluent systemchrome
Fashion cloud interview questions series - JS high-frequency handwritten code questions
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
The overseas listing of Shangmei group received feedback, and brands such as Han Shu and Yiye have been notified for many times and received attention
Simple solution of m3u8 file format
A preliminary study on the middleware of script Downloader
pycuda._ driver. LogicError: explicit_ context_ dependent failed: invalid device context - no currently