当前位置:网站首页>2022河南萌新联赛第(二)场:河南理工大学 F - 手办
2022河南萌新联赛第(二)场:河南理工大学 F - 手办
2022-07-19 20:30:00 【WA_自动机】
F - 手办
所以最终可以直接判断,将满足 p i 1 / 3 p_{i}^{1/3} pi1/3 是有理数的数字选出来,依次交给 n n n 判断
#include<bits/stdc++.h>
using namespace std;
int main()
{
set<int> b;
for(int i=1;i<=1000;i++)
b.insert(i*i*i);
int T;cin>>T;
while(T--)
{
int n;cin>>n;
int ans=0;
for(auto &p:b)
if(n%p==0) ans++;
else if(p>n) break;
cout<<ans<<endl;
}
return 0;
}
边栏推荐
- Vmware解决无法识别USB的问题
- 短視頻系統源碼,uni-app項目中主要文件的加載順序
- PMP每日一练 | 考试不迷路-7.19
- Cannot make QOpenGLContext current in a different thread : PyQt多线程崩溃的解决方法
- 解析高质量STEAM教育中的探究
- 树的性质
- JSON format interface test process
- How to implement recursive function in wechat game making tool
- Kingbasees SQL language reference manual of Jincang database (3.2. data type comparison rules)
- FFmpeg 视频解码
猜你喜欢
Qt的命令行解析
Quick sort by hand
STM32 HAL库串口同时收发,接收卡死?
开启创客教育课程建设的实体空间
stm32移植RT-Thread Nano实现finsh全步骤
The LAAS protocol of defi 2.0 is the key to revitalizing the development of defi track
Which Bluetooth headsets are suitable for gift giving? Top 10 Bluetooth headsets in 2022
xadmin对ueditor的使用
FFmpeg 音视频截取
【golang从入门到实践】扑克发牌游戏
随机推荐
Leetcode 69: climb stairs / jump steps
Quick sort by hand
sql优化相关
本周随笔(周末整理)
Y71. Chapter IV Prometheus large factory monitoring system and practice -- Prometheus server installation (II)
马斯克称已将大脑上传到云端【系统或已开源】
Codeforces Round #807 (Div. 2) A-D
IMPALA2.12环境安装
数据治理研究报告——数据要素权益配置路径(2022年),50页pdf
30 open source software most popular with IT companies
基于BS架构的微博系统
Spire.Office For Net 7.7.2 以及新闻
適合送禮的藍牙耳機有哪些?2022藍牙耳機排行榜10强
2022年全国最新消防设施操作员(初级消防设施操作员)模拟题及答案
Jincang database kingbasees SQL language reference manual (3.10. database object reference method)
Unity3d learning note 9 - loading textures
英语句式参考纯享版 - 宾语从句
迅为STM32MP157开发板安装VMware Tool工具
記錄一下十三届藍橋杯嵌入式省賽題目
The basic operation of data tables in MySQL is very difficult. This experiment will take you through it from the beginning