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

一、基础信息 数据集名称:Bottle Fin实例分割数据集 图片数量: 训练集:4418张图片 验证集:1104张图片 总计:5522张图片 分类类别: - 类别0: 数字0 - 类别1: 数字1 - 类别2: 数字2 - 类别3: 数字3 - 类别4: 数字4 - 类别5: 数字5 - 类别6: Bottle Fin 标注格式:YOLO格式,包含多边形坐标,适用于实例分割任务。 数据格式:图片格式常见如JPEG或PNG,具体未指定。 二、适用场景 实例分割AI模型开发:数据集支持实例分割任务,帮助构建能够精确识别和分割图像中多个对象的AI模型,适用于对象检测和分割应用。 工业自动化与质量控制:可能应用于制造、物流或零售领域,用于自动化检测和分类物体,提升生产效率。 计算机视觉研究:支持实例分割算法的学术研究,促进目标检测和分割技术的创新。 教育与实践培训:可用于高校或培训机构的计算机视觉课程,作为实例分割任务的实践资源,帮助学生理解多类别分割。 三、数据集优势 多类别设计:包含7个不同类别,涵盖数字和Bottle Fin对象,增强模型对多样对象的识别和分割能力。 高质量标注:标注采用YOLO格式的多边形坐标,确保分割边界的精确性,提升模型训练效果。 数据规模适中:拥有超过5500张图片,提供充足的样本用于模型训练和验证,支持稳健的AI开发。 即插即用兼容性:标注格式直接兼容主流深度学习框架(如YOLO),便于快速集成到各种实例分割项目中。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值