摘要:Problem 17 If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used? NOTE: Do not count spaces or h...
阅读全文
随笔分类 - Algorithm (算法)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include using namespace std;double hornerExp(double a[], int n, double x);int main(){ int n; do...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->#include #include #define NMAX 1000 void RotateVector(char arr[], unsigned int index, unsigne...
阅读全文
浙公网安备 33010602011771号