问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

免费把英语单词翻译成中文

发布网友 发布时间:2022-04-29 00:33

我来回答

4个回答

懂视网 时间:2022-04-15 02:43

Problem L Arif inDhaka(First Love Part 2) Input: standard input Output: standard output Time Limit: 2 seconds Our hero Arif is now inDhaka(Look at problem10244 – First Loveif you want to know more about Arif, but that information is not n

Problem L

Arif in Dhaka (First Love Part 2)

Input: standard input

Output: standard output

Time Limit: 2 seconds

Our hero Arif is now in Dhaka (Look at problem 10244 – First Love if you want to know more about Arif, but that information is not necessary for this problem. In short, Arif is a brilliant programmer working at IBM) and he is looking for his first love. Days pass by but his destiny theory is not working anymore, which means that he is yet to meet his first love. He then decides to roam around Dhaka on a rickshaw (A slow vehicle pulled by human power), running DFS (by physical movement) and BFS (with his eyes) on every corner of the street and market places to increase his probability of reaching his goal. While roaming around Dhaka he discovers an interesting necklace shop. There he finds some interesting necklace/bracelet construction sets. He decides to buy some of them, but his programmer mind starts looking for other problems. He wants to find out how many different necklace/bracelet can be made with a certain construction set. You are requested to help him again. The following things are true for a necklace/bracelet construction set.

a) All necklace/bracelet construction sets has a frame, which has N slots to place N beads.

b) All the slots must be filled to make a necklace/bracelet.

c) There are t types of beads in a set. N beads of each type are there in the box. So the total number of beads is tN (t multiplied by N), of which exactly N can be used at a time.


Fig: Different types of necklace for t=2 and different value of N

The figure above shows necklaces for some different values of N (Here, t is always 2). Now let’s turn out attentions to bracelets. A bracelet is a necklace that can be turned over (A junior programmer in Bangladesh says that wrist watch is a necklace (Boys!!! Don’t mind :-))). So for abracelet the following two arrangements are equivalent. Similarly, all other opposite orientation or mirror images are equivalent.

So, given the description of a necklace/bracelet construction set you will have to determine how many different necklace and bracelet can be formed with made with that set

Input

The input file contains several lines of input. Each line contains two positive integers N(0

Output

For each line of input produce one line of output which contains two round numbers NN and NB separated by a single space, where NN is the number of total possible necklaces and NB is the number of total possible bracelets for the corresponding input set.

Sample Input

5 2

5 3

5 4

5 5

Sample Output

8 8

51 39

208 136

629 377

改代码需要处理一下数的幂不然在运算过程中会有数据的溢出影响结果

关于详解看书;

因为i可以从1到n得到n个置换 所以结果要除以n

又因为对于手镯存在翻转 奇数有n个对称轴即n个置换

偶数有n/2 + n/2共n个对称轴也是n个置换


(注:本题中注明了n和t大于0,如果在一般题目中没有注明,那么一定要考虑n==0的情况)

所以结果要除以2n

#include 
#include 
#include 
#include 
using namespace std;
typedef long long LL;
LL power[20];//power[i] = pow(t,i)
int gcd(int x,int y)
{
 while(x!=y)
 {
 if(x>y)
 x = x - y;
 else
 y = y - x;
 }
 return x;
}
int main()
{

 int n,t;
 while(scanf("%d%d",&n,&t)==2)
 {
 LL sum = 0;
 power[0] = 1;
 for(int i = 1;i<=n;++i)
  power[i] = power[i-1]*t;
 for(int i = 1;i<=n;++i)
  sum += power[gcd(i,n)];
 LL sum1 = 0;
 if(n%2==1)
 {
  sum1 = n*power[(n+1)/2];

 }else
 {
  sum1 = n/2*power[n/2+1] + n/2*power[n/2];

 }
 printf("%lld %lld
",sum/n,(sum + sum1)/2/n);
 }
 return 0;
}

热心网友 时间:2022-04-14 23:51

如果没有拼写错误的哈,很多单词不是英语,
不知道你的护肤品是不是来自法国,或是欧洲的其他国家。

4)夜用深入修护乳液
6)柔和清洁保湿泡沫洗面奶
8)和9)都是有抗皱作用的 9)是眼霜, 8)有防晒作用 SPF(防晒指数)是15

热心网友 时间:2022-04-15 01:09

热心网友 时间:2022-04-15 02:43

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
IDM IDMShellExt64.dll无法删除 - 删除使用中的(进程相关或残留)文件... 写关于活动的句子100字 社区团购运营思路和实战有啥收获写100字 备忘录在手机的哪里 刚性消费有哪些 中国经济快速增长的原因 什么是刚性消费 什么叫刚性增长 特别精辟的个性签名(非常经典的个性句子) 特别经典的个性签名(非常惊艳的个性句子) 有没有免费的翻译软件能够把英文的软件翻译成中文的啊 有没有能把中文翻译成西班牙文的软件啊,要免费的哦,知道的说哈,谢谢了 保险满期退保能全额退回吗 有免费中文版的图片制作成视频的软件吗?不胜感激!急用 人寿保险到期后保险金如何计算?是直接退还保险费加上利息还是要扣除一定的费用呢 谁告诉我一个把中文免费在线翻译成韩文的网站.. 免费英文翻译成中文 请问离线免费英中文互译软件(成句子)在那下载。 谁告诉我一个把中文免费在线翻译成英文的网站.. 有没有可以把英文翻译成中文的免费网站? 谁能免费帮忙把中文翻译成英文啊急求谢谢了 有没有中文翻译成英文的免费软件 有什么免费软件能把中文翻译成英文 可以免费把中文翻译成韩语的软件有哪些 怎么批量删除Excel中一类数据? 电脑安装的,不*时长的免费录屏软件有哪些?录制直播的课件(需要录制 图像和声音) 谁有历年考研英语真题及答案最好是pdf的 zhaoyifei13134@163.com 考研英语阅读理解真题精选及答案 情劫为什么会变成死劫? 360浏览器怎么登录? 中国人寿满期保险金 有免费将汉字能转成蒙古文吗? 什么软件可以将图片做成视频 免费中文的 满期保险金又作为保险费转入另一个帐户 如何把英语语音文件(不是现场说话)免费直接翻译成中文也不是先转为文本文件再翻译成中文。 苹果app store免费俩字中文怎么变成英文FERR了? 关于人寿保险公司的“满期生存保险金”问题 有啥软件能把照片制成影片?免费中文的? 苹果系统怎样更换微信提示音,求详细教程。 梦见已离婚的二哥又结婚了是什么意? 妹妹梦见二哥结婚了是什么意思?其实我二哥没有结婚 苹果电脑微信提示音怎么开 苹果系统微信怎么改提示音 梦见已离婚的二哥又结婚了是什么意思 梦见哥哥结婚是好是坏。 我昨晚梦到前男友对我说:二嫂,二哥要结婚了是什么意思? 梦见哥哥结婚 梦见和已故多年的二哥一起吃饭,其间又接了已故母亲的电话让我和二哥结婚什么意思? 我们为什么要尊敬师长?理由 自己装修怎么装比较省钱?有什么装修小技巧?