Faulty OdometerTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9038 Accepted: 5613DescriptionYou are given a ca
原创
2023-05-05 18:22:39
78阅读
#include <string>#include<iostream>#include <math.h>using namespace std;int main(){ string str;int i,a,s; while(cin>>str&&str[0]!='0') { s=0; for(i=0;i<str.size();i++) { a=str[i]-48; if(a>4)a--; s+=a*pow(9,str.size()-i-1.0); } cout<<str<<&quo
转载
2011-07-18 11:43:00
54阅读
2评论
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4278题目意思为:有一个里程表没有3,8这两个数字0,1,
原创
2022-08-22 15:50:13
46阅读
You are given a car odometer which displays the miles traveled as an integer. The odometer has a defect, however: it proceeds from the digit 2 to the
转载
2018-05-07 14:25:00
39阅读
Faulty Odometerhttp://acm.hdu.edu.cn/showproblem.php?pid=4278Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 725 Accepted Submission(s): 512 Problem Description You are given a car odometer which displays the miles traveled as an integer. The od.
转载
2012-12-28 11:42:00
54阅读
2评论
Faulty Odometer Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9301 Accepted: 5759 Description You are given a car odometer which displays
转载
2017-03-17 07:14:00
49阅读
2评论
//自己想复杂了,原来可以这么简单~~~~//把一个9进制数转换成10进制//不过这个9进制数的数字是0 1 2 3 5 6 7 8 9,就是没有4//把4之后的数都减一,然后就是真正的9进制数//“1399” = 1388(9) = 1052(10)//“1500” = 1400(9) = 1053(10)//因此把数字转成标准9进制,再转成10进制就OK了#include<iostream>#include<string.h>#include<stdio.h>using namespace std;int main(){ char ch[10]; whi
转载
2011-07-05 02:47:00
70阅读
http://acm.hdu.edu.cn/showproblem.php?pid=4278题意:一个特殊的汽车行程计数器,当每个位出现3或者8时直接跳到下一位;0 1 2 4 5 6 7 910 11 12 14 15 16 17 1920 21 22 24 25 26 27 29......思路:YY发现其实可以映射到8进制数,(0 - 9)表示10进制数,将(0 1 2 4 5 6 7 9 )映射到(0 - 8)其实就是8进制的表示。View Code #include <iostream>#include <cstdio>#include <cstring
转载
2012-09-11 22:51:00
41阅读
2评论
十进制转八进制的变形:#includeint main(){ int n; while(scanf("%d",&n)!=EOF&&n) { int sum=0; int m=n; int ret=1,x; while(n) { x=n%10; if(x>8)x--; if(x>3)x--; sum+=ret*x; ret*=8; n/=10; } p...
转载
2013-09-27 19:21:00
92阅读
Biker's Trip Odometer
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
原创
2023-02-20 10:18:29
422阅读
Faulty OdometerTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4278DescriptionYou are given a car odometer which d...
原创
2021-07-16 14:45:38
73阅读
Biker's Trip OdometerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2810 Accepted Submission(s): 1922Problem DescriptionMost b
原创
2023-08-21 16:36:55
53阅读
Biker's Trip OdometerTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2098Accepted Submission(s): 1410Problem DescriptionMost bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached
转载
2012-06-04 00:50:00
51阅读
2评论
Faulty OdometerTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 312Accepted Submission(s): 228Problem Description You are given a car odometer which displays the miles traveled as an integer. The odometer has a defect, however: it proceeds from the.
转载
2012-09-10 15:11:00
54阅读
2评论
1.jQuery介绍 jQuery由美国人John Resig(约翰·莱西格)于2006年创建 jQuery是目前最流行的JavaScript程序库,它是对JavaScript对象和函数的封装 它的设计思想是write less,do more 实现隔行变色效果,JavaScript要循环加判断,而 ...
转载
2021-08-28 14:52:00
856阅读
2评论
# 如何实现 "npm jQuery jquery"
## 概述
在本文中,我将向你介绍如何使用 npm 来安装 jQuery,并且在你的项目中使用它。如果你是一名刚入行的小白,不用担心,我会一步步教会你。首先,让我们来看一下整个过程的步骤。
## 步骤
以下是实现“npm jQuery jquery”的步骤:
| 步骤 | 内容 |
| ------ | ------ |
| 步骤一 |
原创
2024-03-02 06:26:02
59阅读
jQueryjQuery概述什么是==jQuery==配置jQuery环境==1.获取jQuery====2.jQuery库的类型说明====3.在页面中引入jQuery====4.jQuery基本语法== jQuery概述什么是jQueryjQuery是一个快速、简洁的 JavaScript 框架,是继Prototype之后又一个优秀的 JavaScript 代码库。jQuery的设计宗旨是“
转载
2023-08-21 18:21:55
68阅读
最近在学习jquery这个js库,看了一些资料,发现没有找到特别满意的,jquery的学习有一点曲折,官网的英文看着不太习惯,现有的翻译的内容又不太全,在学习的过程中查找好多资料,给自己解惑。顺便记录下来,以供参考。本文遵从JQuery在线工具 的内容顺序记录;附带具体内容的细节记录和相关资料的网址。jquery的使用形式有两种:jQuery()和$()jQuery核心函数一. jQuery(选择
转载
2023-11-07 01:22:50
67阅读
概述 jQuery 是一个 JavaScript 库,包含了大量的函数。 jQuery 极大地简化了 JavaScript 编程。 jQuery 很容易学习。 使用 cdn引入:<script src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.m ...
转载
2021-08-06 21:17:00
783阅读
2评论
前言:上一篇介绍了AJAX,接着在这里在记录一下JQuery。什么是JQueryJQuery是一个JAVAScript函数库/JQuery是一个轻
原创
2022-08-30 14:32:03
207阅读