pl统计小程序a
来源:互联网 发布:数据提供商 编辑:程序博客网 时间:2024/06/14 20:51
!#/usr/bin/perl
@instr_names=();
@instr_pctg=();
@instr_names=qw/"movei8","strmgi16","strmovei16","add1","kill2","movestri8"/;
@instr_pctg=(0.3,0.2,0.1,0.1,0.1,0.1,0.1);
%tot_pctg_len=();
for($cur=0;$cur<@instr_names;$cur++){
if($instr_names[cur] =~ /(\d+)/){
$tmp_digit=$1;
$tot_pctg_len{$tmp_digit}+=$instr_pctg[cur];
}
}
while(($key,$value)=each %tot_pctg_len){
print "$key -> $value\n";
}
@instr_names=();
@instr_pctg=();
@instr_names=qw/"movei8","strmgi16","strmovei16","add1","kill2","movestri8"/;
@instr_pctg=(0.3,0.2,0.1,0.1,0.1,0.1,0.1);
%tot_pctg_len=();
for($cur=0;$cur<@instr_names;$cur++){
if($instr_names[cur] =~ /(\d+)/){
$tmp_digit=$1;
$tot_pctg_len{$tmp_digit}+=$instr_pctg[cur];
}
}
while(($key,$value)=each %tot_pctg_len){
print "$key -> $value\n";
}
0 0
- pl统计小程序a
- 代码统计小程序
- 小程序:字符统计
- 小程序:字符串统计
- 【小程序】统计字符
- 程序代码统计小程序
- 代码统计小程序 Java
- C++统计单词小程序
- java 统计代码小程序
- 统计代码量小程序
- linux 流量统计小程序
- C++英文单词统计小程序
- shell 终端统计小程序
- 统计文件的个数小程序!
- 统计自己的代码量小程序
- Set实现元音统计小程序
- 应用——代码统计小程序
- 一个统计文件字数的小程序
- cocos2dx,elipse,Errors occurred during the build,java.lang.NullPointerException打包Android错误
- Java学习--(八)多态
- Add Two Numbers
- Android开发环境的配置(Ubuntu 14.04 64位)
- codeforces gym 100342F Move to Front
- pl统计小程序a
- 浅析UIWebView编程
- 9.Python基础 面向对象的进一步拓展
- UVA 11292 Dragon of Loowater
- 李泽影的第一篇博客
- LA 5092 && hdu 3723 Delta Wave (卡特兰数)
- mac android studio NDK 安装使用(不用翻墙)
- 我只是一个卖煎饼果子的,你跟我谈个鸡毛营销战略,这么牛B自己敲钟去啊 ...
- android学习笔记(7)AbsoluteLayout+FrameLayout+RelativeLayout+TableLayout四大布局方式