摘要:
C语言解题 每天更新一道OJ题目,今日介绍如何求出数组序列。 前言 A number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. Given A, B, 阅读全文
摘要:
C语言解题 每天更新一道OJ题目,今日介绍for 和 while 循环的使用方法和示例。 前言 Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the j 阅读全文
摘要:
C语言解题 每天更新一道OJ题目,今日介绍for 和 while 循环的使用方法和示例。 前言 In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n. 这里使用多种解法来对其进行编译。 一、输入 The inp 阅读全文
摘要:
C语言解题 每天更新一道OJ题目,今日介绍简单整数和大数加法的使用方法和示例。 前言 I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B 阅读全文