当前位置:网站首页>Replace the function of pow with two-dimensional array (solve the time overrun caused by POW)
Replace the function of pow with two-dimensional array (solve the time overrun caused by POW)
2022-07-24 08:57:00 【sylviiiiiia】
int a[10][7]={
0};
for(int w=1;w<=9;w++){
for(int q=0;q<=7;q++){
if(q==0)a[w][q]=1;
else a[w][q]=a[w][q-1]*w;
printf("%d\n",a[w][q]);
}
}
among w It's the base number ,q It's the index .
边栏推荐
- Configuration of uni app page.json title bar
- Houdini 笔记
- 安装软件时提示【An error occurred while trying to create a file in the destination directory: 拒绝访问】的解决方法
- First acquaintance with JVM
- 使用分区的优点
- Attack and defense world ----- confusion1
- 【汇编语言实战】一元二次方程ax2+bx+c=0求解(含源码与过程截屏,可修改参数)
- Three tips for finding the latest trends on tiktok
- Data collection solution for forestry survey and patrol inspection
- Xiaobai learns Jenkins - installation and quick start
猜你喜欢

Xiaobai learns oauth2

Four data interaction modes of go grpc

Rk3566 add project under external

Houdini official HDA sidefx labs installation

PXE principle and configuration

【FFH】OpenHarmony啃论文成长计划---cJSON在传统C/S模型下的应用

脉脉网友出了道 Go 面试题,你能答对吗?

Take out the string in brackets

What is the "age limit" on tiktok and how to solve it?

Android系统安全 — 5.3-APK V2签名介绍
随机推荐
【一起上水硕系列】June总结+no 焦虑+July计划+如何考试+如何提升
Interviewer: man, how much do you know about the read-write lock of go language?
5、 Use of environment variables in midway
The solution of [an error occurred while trying to create a file in the destination directory: access denied] is prompted when installing the software
[Shangshui Shuo series] final rad New Literacies
【汇编语言实战】(二)、编写一程序计算表达式w=v-(x+y+z-51)的值(含代码、过程截图)
Rank 3 and count from 0 to 9. How many times does each number appear in total, and how many times does each number appear in the tens of hundreds,
Basic use of Nacos (2) -- Nacos configuration center
林业调查巡检数据采集解决方案
在npm上发布自己的库
[Sheung Shui Shuo series] EE feedback details
How RPC callers implement asynchronous calls: completable future
Typora提示【This beta version of Typora is expired, please download and install a newer version】的解决方案
Super complete summary: how to operate files in go language
Change of sheetname
Use the bark app to realize the process of pushing messages to mobile phones
Assignment operator (geritilent software - Jiuye training)
From single architecture to distributed architecture, there are many pits and bugs!
网络情人
RPC调用方如何实现异步调用:CompletableFuture