Leftmost Digit Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2519 Accepted Submission(s): 1101 Problem Description Given a positive integer N, you should output the leftmost digit of N^N. In…
当数字过长,R语言会自动采用科学计数法显示,测试如下 > a <- > a [] > a <- > a <- > a [] > a <- > a [] > a <- > a [] > a <- > a [] 1e+ 可以看到,默认情况下,当超过了10万时,自动采用科学计数法. 在画图时,刻度线采用科学计数法标记并不美观,想要解决这个问题,可以设置options(scipen) > options(s…