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阅读
十进制转八进制的变形:#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阅读
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评论
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评论
题目链接:点击打开链接 Faulty Odometer Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 9289   Accepted: 5751 Description You are given a car odometer which displ
原创 2022-08-24 11:34:31
61阅读
Odometer是一个使用JavaScript和CSS技术,制作出数字上下滑动的动画效果插件,有点类似与我们的天然气的读数的动画效果,这个插件是轻量级的,压缩版本只有3kg,使用CSS3动画技术,所以运行起来非常的流畅,需要这种效果的朋友不妨试试这个插件。所有的主题都可以自定义文字的大小和Odometer元素的标签。兼容性Odometer能在IE8+, FF4+, Safari 6+, Chrom
Bill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many miles they have driven. Fortunately, Bill ha
转载 2017-03-10 20:08:00
183阅读
2评论
效果What is Ticker?Ticker is a simple Android UI component for displaying scrolling text. Think about how an odometer scrolls when gt Ticker does.
原创 2023-05-07 15:57:09
208阅读
Speed LimitTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 18666 Accepted: 13047DescriptionBill and Ted are taking a road trip. But the odometer in thei
原创 2022-08-10 20:21:36
92阅读
原题: Description Bill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many miles they have driven. Fortunately, Bill has a working stopwatch, so they c
原创 2013-05-03 19:33:00
567阅读
  • 1
  • 2