计算a的立方
Time Limit:1000MS Memory Limit:65536K
Total Submit:328 Accepted:213
Description
计算a的立方
Input
1
2
3
Output
1
8
27
Sample Input
1
2
3
Sample Output
Hint
1
8
27
Source
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AK1124 {
class Program {
static void Main(string[] args) {
string sb;
while ((sb = Console.ReadLine()) != null) {
long n = long.Parse(sb);
long ans = n * n * n;
Console.WriteLine(ans);
}
}
}
}
本文介绍了一个简单的程序,用于计算输入数字的立方值。程序通过读取标准输入中的整数并输出其立方结果。
10万+

被折叠的 条评论
为什么被折叠?



