依次输出n项fibonacci数列
作者:充电头网
前言
现在越来越多的厂商都把充电器和插线板集成在一起,打造小巧实用的快充插线板,满足使用时交流电源扩展和手机充电等功能。相比传统插线板使用充电器时还要占用插孔位置,快充插线板的出现,让桌面更加整洁清爽。
倍思新推出了一款30W输出功率的氮化镓快充插线板,插线板带有两个五孔插口和一个两插插口,支持三台交流供电的设备使用,插线板还支持30W快充输出,具备1C2A接口,支持PPS快充,能满足主流手机的快充需求。
值得一提的是,这款插线板还内置了数字保护电路,支持检测交流输入过压、欠压,以及输出过载等保护功能,在出现异常时自动切断电源,确保插线板和用电设备的安全。下面充电头网就对这款氮化镓快充插线板进行拆解,看看内部设计如何。
倍思30W快充插线板开箱
包装盒正面印有Baseus品牌、产品外观、名称、30W以及GaN标识。
背面印有产品使用场景图以及参数信息。
包装内含插座、说明书、卡通贴纸等。
插座依旧是该系列经典的长条方柱造型机身,PC材质白色外壳,表面磨砂处理,另外自带三脚插头电源线。
插头插脚套有塑料壳保护,两侧设有小凹面方便插拔使用。
电源线设有胶套进行保护。
机身顶面设有AC插孔和电源键,电源键外围还有指示灯环设计。
双脚插孔区域亮面内凹设计。
两侧各设有一个3+2新国标组合插孔。
组合插孔特写,都内置安全门防止异物进入,用电更加安全。
机身底部印有产品参数。
产品参数特写
型号:CCGAN30-3ACC
额定电压:250V~
额定功率:2500W Max
额定电流:10A Max
输入:200-240V~50/60Hz 0.8A Max
USB-C输出:5V3A、9V3A、12V2.5A、15V2A、20V1.5A
USB1/2输出:5V3A、9V3A、12V2.5A、20V1.5A
USB-C+USB1/2输出:5V3A
USB1+USB2输出:5V3A
USB-C+USB1+USB2输出:5V3A
深圳市倍思科技有限公司
产品已经通过了CCC认证。
机身端部配有2A1C三个USB接口,均为橘红色胶芯。
测得插座电源线长度约为1.5米。
机身长度为109.02mm。
宽度为46.54mm。
厚度为42.18mm。
产品拿在手上的大小直观感受。
总重量约337g。
接通电源按下电源键,指示灯亮淡蓝色光。
使用ChargerLAB POWER-Z KM002C测得USB-C口支持Apple2.4A、QC3.0、QC4+、AFC、FCP、PD3.0和PPS充电协议。
PDO报文方面,支持5V3A、9V3A、12V2.5A、15V2A、20V1.5A五组固定电压,以及3.3V-11V2.5A一组PPS电压档位。
测得USB-A口都支持Apple2.4A、QC3.0、AFC、FCP协议。
倍思30W快充插线板拆解
在对倍思30W快充插座有了基本了解后,下面继续对其进行拆解,看看做工如何。
首先撬开插线板的外壳,内部是插座模块和快充模块,两者为独立结构。
插座模块引出导线连接到快充模块,由快充模块控制供电。在盖板下面还隐藏了一个两插插座,在插线板底部,未被使用。
输入的火线零线连接到快充模块,快充模块控制插座模块输出,导线均为焊接连接。
剪断导线取出快充模块,外壳内部触摸区域以及指示灯特写。
其中蓝色和棕色导线连接到快充模块供电,红色和黑色导线连接插座模块供电。
快充模块由四块PCB板焊接组成,其中对应插座模块的位置贴有麦拉片绝缘。
另外一侧为输出USB母座小板,焊接USB-C和两个USB-A母座。
使用游标卡尺测得快充模块长度约为61.41mm。
快充模块宽度约为41.8mm。
快充模块厚度约为32.77mm。
快充模块共由四块PCB穿插组合焊接而成。
电路板围成的空间内部布置开关电源以及继电器等元件。
将四块小板拆分开来,分别为控制电路电源,快充电源模块,输入电压电流检测控制电路和输出协议电路。
通过对PCBA的观察发现,倍思这款30W 2A1C快充插线板内置三路开关电源,分别用于快充输出,继电器控制,功率检测和触摸功能。其中快充电源采用高频反激开关电源宽电压输出,输出电压由协议芯片反馈给初级主控芯片,调节输出电压为输出接口供电,实现单口快充,多口5V的输出策略。下面我们就从输入端开始了解整个充电器的设计与用料。
输入端电路板为电压电流检测及控制电路,焊接电流取样电阻,采样芯片和继电器。
小板背面为非隔离降压开关电源和控制供电的继电器等元件。
输入端保险丝特写,外套热缩管绝缘。
电源输入端整流桥来自平伟,型号ABSR10,规格1A 1000V。整流输出共分为两路输出,其中一路用于非隔离降压电路,另外一路为触摸控制电路供电。
输出使用两颗400V4.7μF电容滤波,两颗电容之间是绿色差模电感。
安规X2电容来自KWOKTRAN国灿电子,容量为0.1μF。
用于输入输出的滤波电容以及绿色滤波电感。
输入滤波电容规格为400V4.7μF。
非隔离降压电路采用力生美LN8K05A非隔离降压转换器,内部集成750V耐压开关管,支持5V固定电压输出,输出电流可达150mA,外围元件精简。
用于插座电流检测的1mΩ电流取样电阻。
用于交流电压和输出电流计量的检测芯片,来自合力为,型号HLW8032,用于交流电压电流以及功率测量,配合单片机实现插座的过压过流保护功能,确保安全用电。
继电器来自宏发,型号HF32FV-G,触点电流10A,线圈电压5V,用于控制插座交流部分供电。
接下来是另外一路电源控制电路,小板上焊接LED指示灯,开关电源以及控制单片机等,用于过压过流信号检测以及触摸控制功能。
小板上降压芯片来自晶丰明源,型号S7132S,是一颗原边控制的开关电源芯片,采用SOP7封装。
小板背面焊接变压器,固态电容和一颗电解电容。
变压器次级采用多层绝缘线,并打白色胶水固定绝缘。
OR1009光耦用于状态反馈。
贴片Y电容来自四川特锐祥科技股份有限公司,型号TMY1102M,具有体积小、重量轻等特色,非常适合应用于氮化镓快充这类高密度电源产品中。
特锐祥专注于被动元器件的研发、生产及销售,注册资本1亿元。旗下有自主电容品牌两类:SMD TRX及DIP TY电容器,TRX将致力于陶瓷材料的研究,以拓展更多品类的应用,为客户提供更多的解决方案。
充电头网了解到,特锐祥贴片Y电容除了被麦多多100W氮化镓、OPPO 65W超级闪充氮化镓充电器、联想90W氮化镓快充、努比亚65W氮化镓充电器、倍思120W氮化镓+碳化硅PD快充充电器等数十款大功率充电器使用外,也可应用于海陆通、第一卫、贝尔金等品牌20W迷你快充上,性能获得客户一致认可。
用于输出整流的SS34肖特基二极管。
输出滤波电容来自云星,规格为330μF 6.3V。
用于检测触摸操作的弹簧。
丝印233B的触摸芯片,用于检测弹簧的触摸操作。
在触摸弹簧边缘是六颗LED指示灯,用于指示供电状态。
丝印BP0K105的单片机芯片,用于插座的过压过流保护检测。
交流输入分为两路,其中一路连接到插座,另外一路连接到快充模块。快充模块PCBA背面一览,焊接整流桥,氮化镓主控芯片,氮化镓开关管和同步整流芯片。
小板左侧为两颗输出滤波电容,右侧为开关变压器,底部焊接滤波电解电容,右侧焊接共模电感,NTC热敏电阻和输入保险丝。
输入端延时保险丝规格为3.15A 250V。
NTC浪涌抑制电阻丝印1R5,表示冷态电阻为1.5Ω。
共模电感采用漆包线和绝缘线绕制,外套热缩管绝缘。
整流桥来自平伟,型号TMBFR310,3A 1000V。
一颗滤波电容来自绿宝石,规格为400V 22μF。
差模电感特写,采用工字磁芯绕制,外套热缩管绝缘。
另一颗滤波电容来自永铭,规格为33μF400V。
开关电源主控芯片采用茂睿芯MK2697A,这是专为PD/快充应用优化的QR PWM控制器。其很宽的VCC工作电压范围(9V-90V)可以使其覆盖PD/PPS从3.3V-23V的输出范围而不需要使用额外的绕组或者线性降压电路。
MK2697是针对于能效要求,由于PD/快充有多个不同的输出电压,因此采用了自适应的多模式。其在不同负载以及不同输出下,调整工作于DCM/QR。 在轻载时则会工作于burst模式,以提升效率。
MK2697A提供了全面的保护功能,有输出OVP,OPP,VCC OVP,BROWN-IN/OUT,还提供了副边SR短路保护, PIN脚OPEN/SHORT保护等。
充电头网拆解了解到,采用茂睿芯快充方案的还有华科生迷你33W快充、倍思20W 1A1C快充充电器、爱莎瓦特65W 2A1C氮化镓快充、air-J 18W 1A1C快充充电器等产品采用。
氮化镓功率芯片采用英诺赛科INN650DA04,耐压650V,导阻480mΩ(max),具备高频高效、极低损耗、快速主动散热等特点,同时采用DFN5*6封装,实现小体积、高效率的充电器设计。
英诺赛科INN650DA04资料信息。
INN650DA04是InnoGaN系列第二代新品,此前已被古石科技迷你30W氮化镓快充、科讯迷你33W快充氮化镓、REMAX 30W氮化镓快充、努比亚30W氮化镓方糖快充、睿元实业33W 1A1C氮化镓快充等数十款30W快充产品采用,芯片质量获得市场认可。
为初级主控芯片供电的滤波电容来自永铭,规格为3.3μF 100V。
变压器来自兴达伟业,变压器上还丝印有ETQ2013 HN280A字样。
用于输出电压反馈调节的OR1009光耦。
同步整流芯片型号为TS16E18H,来自茂睿芯。
两颗输出滤波电容打胶与输出小板固定。
两颗输出滤波电容均为绿宝石BC系列固态电容,规格为470μF 25V。
另一颗滤波电容规格相同。
小板上焊接一颗协议芯片,USB-C母座和两个USB-A母座,以及对应的VBUS开关管。
协议芯片采用云矽半导体XPD977,2A1C三口输出电压全部由这颗芯片控制。XPD977已经通过了USB PD3.0认证,TID:5594。支持XPD-LINKTM多芯片互联通信技术;支持QC2.0/3.0/3.0+、AFC、FCP、SCP、HVSCP、PD和PPS等快充协议,还支持小米CHARGE TURBO 27W协议、华为10V高压 SCP协议等。
云矽半导体XPD977内部集成 10mΩ VBUS 通路功率开关管,并且集成10mΩ电流检测电阻,内置VPWR和VBUS双放电通路。支持完善的保护功能,节省外围元件数量,简化电路,降低成本。采用QFN5X5-32封装。
充电头网拆解了解到,云矽半导体XPD系列快充协议芯片已被公牛,贝尔金,联想,诺基亚,飞利浦,傲基,倍思,品胜,摩米士等多个品牌的数十款产品采用,抓住20-30W PD快充风口,富满集团云矽半导体单月PD协议芯片销量突破千万颗。
USB-C母座过孔焊接固定,橙色胶芯不露铜。
USB-A母座正负极加宽设计,支持大电流快充。
全部拆解完毕,来张全家福。
充电头网拆解总结
倍思这款氮化镓快充插线板具备两个新国标五孔插口和一个两孔插口,并且具备1C2A接口,支持30W快充输出,并支持PPS快充,对苹果和安卓手机的快充兼容性都很好,并且可以满足日常家用及办公室的用电需求,节省桌面占用,更加整洁清爽。
充电头网通过拆解了解到,这款插线板内置了数字保护电路,能够检测交流输入过压欠压,还能检测插座的输出电流,在出现异常时自动切断电源,保证安全。插线板内置茂睿芯MK2697A主控芯片,搭配英诺赛科INN650DA04氮化镓开关管,使用云矽XPD977协议芯片,实现三口快充。
其余两路降压电路分别使用力生美非隔离电源芯片和晶丰明源原边反馈电源芯片,用于继电器线圈供电和单片机供电,负责交流输出和快充模块供电控制。插座功能全面,还支持交流供电异常和过流保护功能,更加增进用电安全。
","force_purephv":"0","gnid":"9b9a51eb3c3f08c41","img_data":[{"flag":2,"img":[{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t015d008f4fa5e800ca.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t016a38416a37f7845d.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t010b26093335a6be2c.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t011a461d2e221ffeba.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t010fec29ebf96f4915.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01634554f4106604d1.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01dd1f716c82ade881.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01920adf9bc1c4b4fa.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01459e9b9ce4b17dd2.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01feab767c19a186bd.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t019928fc7900fe4ed4.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01caaae3a7783bdcc1.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01a0455e86f6c1471a.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01e00932699488111b.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t014e161637c54efd3c.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t011a1e6f45d98e61c9.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01cb091ddf93442835.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01ffdf795799450e91.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01cf8c9ba8b797c200.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t012ecaeb7432543169.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t018f02e27e77329a53.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01ad441238d07036d9.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t016171a5c50043a426.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0145974eda92485a91.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0194a3281f81bdf690.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01fb82cbe962327fb7.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01df55fc3883396a84.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01404b8cad73823780.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01c0ef0fa6de2dd495.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t019cb142592ac7f0f0.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t013d23ff7f97577078.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01d8e9ccb81899df80.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0185b070296b6a9045.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t010057334020a75770.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t012ca971e14557d92f.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01603318c5b8e52c24.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01574f5e1153f773b2.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0176819e258dca536b.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01916d7f5fcf5e0bb2.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t012fe93f2b37773610.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0144da6b8d6dd6535f.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01161ce928b75f087d.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t016bf4743fb4905305.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01ee509ae2111a38c6.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t012746880ff377b0ce.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01673022ca517c1b15.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01941706d9c1221ab1.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t013006530c08cdace9.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0163fe4869124682c7.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0173b82d2a84ced63e.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0177ca6fd736412748.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t013e5513a8e4d1f863.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01ab3085d7904ae592.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01fda81d1446cfbd4b.jpg","width":"600"},{"desc":"","height":"338","title":"","url":"https://p0.ssl.img.360kuai.com/t01633f48c02be6bb9a.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01db54c196b78c2a98.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0166e2c60d5b39b0e6.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01b3419c438ed6643a.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t010867fd21f6c770c9.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01aa8df4a481beef93.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t015a8b7d5b12aa4022.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t010bb131caa0920dde.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01323be68b4d2b9edb.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0151ea34105c819cfc.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0126f1c154f1c2ca3f.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01e9a90b41aa6024eb.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0194b53bc5e3b664b3.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01d1f9cc1080af814f.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t017902800c0ae38287.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01383183d61aeede6a.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t011505db3a3df816cf.jpg","width":"600"},{"desc":"","height":"736","title":"","url":"https://p0.ssl.img.360kuai.com/t0150f876f13a4050e4.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t010365a4b4ec26e30e.jpg","width":"600"},{"desc":"","height":"774","title":"","url":"https://p0.ssl.img.360kuai.com/t01bfec2b042bca1a99.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t018a7a0e843b2646fc.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01069a75a4e04d8cc3.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01c6e591401eb76469.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t016f04e145b9a61187.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01eb3eb004d09910f1.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01be2da04074530cb8.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t015cf82c1109918052.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01cef99b21dbd62cdf.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t016099c15ea3f4dd33.jpg","width":"600"},{"desc":"","height":"876","title":"","url":"https://p0.ssl.img.360kuai.com/t01f3b22299de78a353.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0142cf9f50ccfe85c0.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t01b419e55ca7264836.jpg","width":"600"},{"desc":"","height":"400","title":"","url":"https://p0.ssl.img.360kuai.com/t0112bdfde98371be14.jpg","width":"600"}]}],"original":0,"pat":"art_src_1,fts0,sts0","powerby":"hbase","pub_time":1658741426000,"pure":"","rawurl":"http://zm.news.so.com/1d94f26798e9874c98e06695a80dc5e2","redirect":0,"rptid":"b22bb4b1e7cbca07","s":"t","src":"什么值得买","tag":[{"clk":"kdigital_1:快充","k":"快充","u":""}],"title":"拆解报告:Baseus倍思30W 2A1C快充插座CCGAN30-3ACC
宦汪畏3248编写程序,让一个数组元素依次保存斐波那契数列前20项的值 -
师趴才19364582870 ______ 斐波那契数列是:1,1,2,3,5,8,13,21,34,55,89...规律是:f[0]=1,f[1]=1,f[i]=f[i-1]+f[i-2],i>1#include <stdio.h> void main() { int i,array[20]={1,1}; for (i=2; i<20; i++) { array[i]=array[i-2]+array[i-1]; } for (i = 0; i<20; i++) { printf("%d ",array[i]); } printf("\n"); } 写好了,看一下,测试通过...
宦汪畏3248求斐波那切数的第128项 ,c语言咋求呢 求代码 -
师趴才19364582870 ______ 展开全部#include int fib(int n) { if(n==0||n==1) return 1; return fib(n-1)+fib(n-2); } int main() { int i; for(i=0;i<10;i++) { printf("%d\t",fib(i)); } } 代码
宦汪畏3248用冒泡法对数组的N个整数排序,按由大到小的顺序输出 -
师趴才19364582870 ______ #include<stdio.h> #include<math.h> int main() { int i,j,a[100],n,t; scanf("%d",&n); for(i = 0;i < n;i ++) scanf("%d",&a[i]); for(i = 0;i < n;i ++) for(j = 0;j < n;j ++) if(a[j] < a[i]) t = a[i],a[i] = a[j],a[j] = t; for(i = 0;i < n;i ++) printf("%d ",a[i]); printf("\n"); return 0; }
宦汪畏3248C语言:用一维数组计算并输出Fibonacci数列的前20项.Fibonacci数列,按如下递 -
师趴才19364582870 ______ 思路:先定义数组的前两项值,再依次对后面每项进行赋值,后面每项都是前两项的和.例如:#include int main(){ int a[20],i; a[0]=a[1]=1; for(i=2;i a[i]=a[i-1]+a[i-2]; for(i=0;i printf("%4d ",a[i]); if((i+1)%5==0) printf("\n"); } return 0; }/* 输出: 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765*/
宦汪畏3248c语言fibonacci数列问题 -
师趴才19364582870 ______ for(i=2;i<20;i++) f[i]=f[i-2]+f[i-1]; 应该依次是 f[2]= f[0]+f[1] f[3]= f[2]+ f[1] ........ f[20]= f[18] + f[19] for(i=0;i<20;i++) //i从0到20 { if(i%5==0)printf("\n"); //如果i是5的倍数,则输出 换行符合 printf("%12d",f[i]) //以12位整型输出,f[i] } 结果应该是 f[0] f[1] f[2] f[3] f[4] f[5]...........
宦汪畏3248C语言 输入n,求n以内的所有素数,空格依次输出,但输出的最后一个数后不能有空格,仅卷入s -
师趴才19364582870 ______ #include<stdio.h> int main() { int n,l=0; printf("请输入你需要查询的n值:"); scanf("%d",&n); int a[n],i,j,b[n]; for(i=0;i<n;i++) { a[i]=i+1; b[i]=i+1; } b[0]=0; for(i=1;i<n+1;i++) { for(j=1;j<i;j++) { if(a[i]%a[j]==0) b[i]=0; } } for(i=1;i<n;i++) ...
宦汪畏3248求一实现方法,输出数组全部组合. -
师趴才19364582870 ______ 首先输入n scanf("%d", &n); 再输入每个数组的每一项 for (int i = 1; i <= n; i++) for..... scanf..... 然后根据数组长度来依次输出(假定长度为len)(全排列) 可以尝试用递归(回溯)来实现 在过程中对长度进行限定就ok了
宦汪畏3248以下程序 for(i=0;i<n;i++) 代表咩意思,希望可以详细一点 -
师趴才19364582870 ______ 这是一个for循环,从i=0开始,执行下面的语句,然后循环i++,将i值+1,也就是将i=0+1=1的值赋给i,然后再执行下面语句,重复上面的,i值再+1,循环,知道i值大于你从键盘输出的n值就退出循环,例如取n=5,那i=4的时候就执行下面的语句,循环到i=5时,for循环里面的i
宦汪畏3248计算并输出fibonacci数列中小于30000的最大一项,用c语言 -
师趴才19364582870 ______ #include int main() { int f0,f1=1,fn=1; do { f0=f1; f1=fn; fn = f0+f1 ; } while ( fn printf("最大一项=%d\n", f1 ); return 0; }
宦汪畏3248第一题、 编写程序:对100个数组元素依次赋值为:0, 2, 4……198,要求按逆序输出 -
师趴才19364582870 ______ /* 对100个数组元素依次赋值为:0, 2, 4……198,要求按逆序输出,并且每行输出10个数字 */ #include "stdio.h" void main() { int arr[100]; int i; for(i=0; i<100; i++) arr[i] = 2 * i; for(i=99; i>=0; i--) { printf("%4d", arr[i]); if(i%10 == 0) printf("\...