随笔分类 -  HackerRank【30 Days of Code】

巩固基础知识很不错
摘要:Day 5: Loops 给一个整数,打印他的十个倍数,每个倍数需要单独开启一个新行,格式:n x i = result. Sample Input 2 Sample Input Sample Input 2 2 Sample Output 2 x 1 = 2 2 x 2 = 4 2 x 3 = 6 阅读全文
posted @ 2019-07-25 16:02 乱世有歌舞 阅读(118) 评论(0) 推荐(0)
摘要:Day 4: Class vs. Instance Task Write a Person class with an instance variable, age, and a constructor that takes an integer, initialAge, as a paramete 阅读全文
posted @ 2019-07-23 10:25 乱世有歌舞 阅读(158) 评论(0) 推荐(0)
摘要:Day 3: Intro to Conditional Statements 阅读全文
posted @ 2019-07-22 12:11 乱世有歌舞 阅读(143) 评论(0) 推荐(0)
摘要:Day 2: Operators Task Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent(t 阅读全文
posted @ 2019-07-21 19:33 乱世有歌舞 阅读(117) 评论(0) 推荐(0)
摘要:Day 1: Data Types 阅读全文
posted @ 2019-07-21 19:31 乱世有歌舞 阅读(181) 评论(0) 推荐(0)
摘要:Day 0: Hello, World. Task To complete this challenge, you must save a line of input from stdin to a variable, print Hello, World. on a single line, an 阅读全文
posted @ 2019-07-20 11:03 乱世有歌舞 阅读(207) 评论(0) 推荐(0)