1049. Brave Balloonists

博客介绍了1049. Brave Balloonists,包含Input、Output、Sample等内容,还给出了转载来源https://www.cnblogs.com/sdau--codeants/p/3251031.html 。

1049. Brave Balloonists

Time limit: 2.0 second Memory limit: 64 MB
Ten mathematicians are flying on a balloon over the Pacific ocean. When they are crossing the equator they decide to celebrate this event and open a bottle of champagne. Unfortunately, the cork makes a hole in the balloon. Hydrogen is leaking out and the balloon is descending now. Soon it will fall into the ocean and all the balloonists will be eaten by hungry sharks.
But not everything is lost yet. One of the balloonists can sacrifice himself jumping out, so that his friends would live a little longer. Only one problem still exists: who is the one to get out. There is a fair way to solve this problem. First, each of them writes an integer ai not less than 1 and not more than 10000. Then they calculate the magic number N that is the number of positive divisors of the product a1*a2*…*a10. For example, the number of positive integer divisors of 6 is 4 (they are 1,2,3,6). The hero (a mathematician who will be thrown out) is determined according to the last digit of N. Your task is to find this digit.

Input

Input contains ten integer numbers (each number is in separate line).

Output

Output a single digit from 0 to 9 — the last digit of N.

Sample

inputoutput
1
2
6
1
3
1
1
1
1
1
9
Problem Author: Stanislav Vasilyev Problem Source: Ural State University collegiate programming contest (25.03.2000)
***************************************************************************************
求因子的个数=连乘(ai+1);ai为质因子的个数。
***************************************************************************************
 1 #include<iostream>
 2 #include<cstring>
 3 #include<string>
 4 #include<cstdio>
 5 #include<cmath>
 6 using namespace std;
 7 int su[10003];
 8 bool  p[10003];
 9 int ks,sm;
10 int sum[10003];
11 void  find(int x)
12 {
13     int m=x;
14     m+=x;
15     while(m<=10001)
16      {
17          p[m]=true;
18          m+=x;
19      }
20 }
21 void  sushu()
22 {
23     for(int iv=2;iv<=10001;iv++)
24      {
25          if(!p[iv])
26          {
27               find(iv);
28               su[++ks]=iv;
29          }
30 
31      }
32 }
33 int main()
34 {
35     int a;
36     ks=0;
37     int i,ds;
38     memset(p,false,sizeof(p));
39     memset(su,0,sizeof(su));
40     sushu();
41     memset(sum,0,sizeof(sum));
42     for(i=1;i<=10;i++)
43      {
44          cin>>a;
45          ds=1;
46          while(a>1)
47          {
48              while(a%su[ds]==0&&a>1&&su[ds]<=a)
49                {
50                    a=a/su[ds];
51                    ++sum[ds];
52                 }
53             ds++;
54          }
55      }
56     sm=1;
57     for(i=1;i<=ks;i++)
58      {
59          //cout<<sum[i]<<endl;
60     sm=sm*(sum[i]+1);
61     //cout<<num%10<<endl;
62     }
63     cout<<sm%10<<endl;
64     return 0;
65 }
View Code

 

转载于:https://www.cnblogs.com/sdau--codeants/p/3251031.html

下载方式:https://pan.quark.cn/s/b4d8292ba69a 在构建食品品牌的市场整合营销推广方案时,我们必须首先深入探究品牌的由来、顾客的感知以及市场环境。 此案例聚焦于一款名为“某饼干产品”的食品,该产品自1998年进入河南市场以来,经历了销售业绩的波动。 1999至2000年期间,其销售额取得了明显的上升,然而到了2001年则现了下滑。 在先前的宣传活动中,品牌主要借助大型互动活动如ROAD SHOW来吸引顾客,但收效甚微,这揭示了宣传信息与顾客实际认同感之间的偏差。 通过市场环境剖析,我们了解到消费者对“3+2”苏打夹心饼干的印象是美味、时尚且充满活力,但同时亦存在口感腻、价位偏高、饼身坚硬等负面评价。 实际上,该产品可以塑造为兼具美味、深度与创新性的休闲食品,适宜在多种情境下分享。 这暗示着品牌需更精确地传递产品特性,同时消解消费者的顾虑。 在策略制定上,我们可考虑将新产品与原有的3+2苏打夹心进行协同推广。 这种策略的长处在于能够借助既有产品的声誉和市场占有率,同时通过新产品的加入,刷新品牌形象,吸引更多元化的消费群体。 然而,这也可能引发一些难题,例如如何合理分配新旧产品间的资源,以及如何保障新产品的独特性和吸引力不被既有产品所掩盖。 为了提升推广成效,品牌可以实施以下举措:1. **定位修正**:基于消费者反馈,重新确立产品定位,突其美味、创新与共享的特性,减少消费者感知的缺陷。 2. **创新宣传**:宣传信息应与消费者的实际体验相契合,运用更具魅力的创意手段,例如叙事式营销,让消费者体会到产品带来的愉悦和情感共鸣。 3. **渠道选择**:在目标消费者常去的场所开展活动,例如商业中心、影院或在线平台,以提高知名度和参与度。 4. **媒体联...
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值