東京大学 情報理工学系研究科 創造情報学専攻 2014年2月実施 プログラミング
Author
Description (English)
Use 64bit (or less) integer arithmetic when writing the following programs.
(1) Write a program that computes
where
(2) Write a program that computes
(3) Write a program that takes two character strings representing a positive 32-digit decimal integer and print the sum of the two integers. Test the program by giving the following inputs:
00123456789012345678901234567890
00987654321098765432109876543210
(4) Write a program that computes
(5) Consider the following notation to represent a 32-digit decimal floating-point number:
12345678901234567890123456789012 02
It consists of 32 digits and 2 digits separated by a white space. The number above represents
12345678901234567890123456789012 04
98765432109876543210987654321098 09
(6) Write a program that computes the value of
Use a 32-digit decimal floating-point number to compute the value.
(7) Write a program that computes the value of
Use a 32-digit decimal floating-point number to compute the value.
(8) Write a program that computes the maximum value of