
大数运算
love music.
中山大学计算机博士在读,曾就职于腾讯等公司,目前从事AI多模态大模型研究。
展开
-
迅雷2019 [编程题] 2的N次方 (大数乘法)
原题链接:https://www.nowcoder.com/test/12398771/summary[编程题] 2的N次方时间限制:1秒空间限制:131072K对于一个整数N(512 <= N <= 1024),计算2的N次方并在屏幕显示十进制结果。 输入描述:输入一个整数N(512 <= N <= 1024)输出描述:2的N次方的十...原创 2018-09-27 16:53:05 · 1250 阅读 · 0 评论 -
PAT甲级 1023. Have Fun with Numbers (20) 大整数运算(利用字符串进行模拟)
参考链接:https://www.liuchuo.net/archives/2151Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, whic...原创 2018-08-12 14:55:38 · 222 阅读 · 0 评论 -
PAT甲级 1024. Palindromic Number (25) 大整数相加(利用字符串模拟整数相加)
1024. Palindromic Number (25)A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit nu...原创 2018-08-12 22:31:48 · 325 阅读 · 0 评论