当前位置:网站首页>2022 Henan Mengxin League game (2): Henan University of technology f - Handmade
2022 Henan Mengxin League game (2): Henan University of technology f - Handmade
2022-07-20 21:52:00 【WA_ automata】
F - Garage Kit
So we can judge directly in the end , Will satisfy p i 1 / 3 p_{i}^{1/3} pi1/3 Select the numbers that are rational numbers , Give it to n n n Judge
#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;
}
边栏推荐
猜你喜欢
Quickly install VMware tool for stm32mp157 development board
30 open source software most popular with IT companies
Quick sort by hand
2022 National latest fire-fighting facility operator (primary fire-fighting facility operator) simulation questions and answers
可以DIY装修的商城系统,你也能拥有!
LVGL 8.2 Span
指针数组跟数组指针的简单范例
【刷题记录】15.三数之和
Microblogging system based on BS architecture
2022年最新内蒙古建筑安全员模拟题库及答案
随机推荐
Mysql高级篇学习总结12:索引失效的11种情况
VS2017 30天试用结束后无法使用,登录界面卡主问题
IMPALA2.12环境安装
[today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging
Record the title of the 13th Landbridge cup embedded provincial competition
排序--插入排序、希尔排序
To do difficult work
Simple examples of pointer arrays and array pointers
Leetcode 69: climb stairs / jump steps
华为|MLGOPerf:用于优化性能的 ML 引导内联器
开启创客教育课程建设的实体空间
Microservice testing
Cannot make QOpenGLContext current in a different thread : PyQt多线程崩溃的解决方法
NumPy概述
Using redis + Lua script to realize distributed flow restriction
数据治理研究报告——数据要素权益配置路径(2022年),50页pdf
MySQL MVCC你了解吗
Spire.Office For Net 7.7.2 以及新闻
2022河南萌新联赛第(二)场:河南理工大学 J - 签到
数组与指针