浅尝辄止
题解
讨论
查看他人的提交
题号:NC204916
时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
给定一个正整数n,求
。式子中[x]为下取整。
答案可能会很大,输出答案对998244353取模后的值。
示例1
输入
复制
5
5
返回值
复制
10
10
示例2
输入
复制
10
10
返回值
复制
27
27
备注:
1<=n<=10^13
浅尝辄止
返回全部题目
列表加载中...
import java.util.*; public class Solution { /** * * @param n long长整型 * @return int整型 */ public int work (long n) { // write code here } }
class Solution { public: /** * * @param n long长整型 * @return int整型 */ int work(long long n) { // write code here } };
# # # @param n long长整型 # @return int整型 # class Solution: def work(self , n ): # write code here
/** * * @param n long长整型 * @return int整型 */ function work( n ) { // write code here } module.exports = { work : work };
# # # @param n long长整型 # @return int整型 # class Solution: def work(self , n ): # write code here
package main /** * * @param n long长整型 * @return int整型 */ func work( n int64 ) int { // write code here }
/** * * @param n long长整型 * @return int整型 */ int work(long long n ) { // write code here }
5
10
10
27