一个很简单的C语言程序

时间:2013.09.03 发布人:MVPBrucedong

一个很简单的C语言程序

已解决问题

谷歌MVPBrucedong用户在2013.09.03提交了关于“南昌一个很简单的C语言程序”的提问,欢迎大家涌跃发表自己的观点。目前共有1个回答,最后更新于2024-12-18T14:01:56。GivenapositiveintegerN,youshouldoutputthemostrightdigitofN^N.InputTheinputcontainsseveraltestcases.ThefirstlineoftheinputisasingleintegerTwhichisthe**mberoftestcases.Ttestcasesfollow.EachtestcasecontainsasinglepositiveintegerN(1<=N<=1,000,000,000).OutputForeachtestcase,youshouldoutputtherightmostdigitofN^N.SampleInput234SampleOutput76h**intInthefirstcase,3*3*3=27,sotherightmostdigitis7.Inthesecondcase,4*4*4*4=256,sotherightmostdigitis6.求各种答案,我老是超出时间限制,求救希望大家能够帮助她。

详细问题描述及疑问:GivenapositiveintegerN,youshouldoutputthemostrightdigitofN^N.InputTheinputcontainsseveraltestcases.ThefirstlineoftheinputisasingleintegerTwhichisthe**mberoftestcases.Ttestcasesfollow.EachtestcasecontainsasinglepositiveintegerN(1<=N<=1,000,000,000).OutputForeachtestcase,youshouldoutputtherightmostdigitofN^N.SampleInput234SampleOutput76h**intInthefirstcase,3*3*3=27,sotherightmostdigitis7.Inthesecondcase,4*4*4*4=256,sotherightmostdigitis6.求各种答案,我老是超出时间限制,求救期待您的答案,你无异于雪中送炭,让我感激涕零 !

希望以下的回答,能够帮助你。

第1个回答

用户名:纳米搜索