跳到正文

个人记录

【八月份 -- 基础语法组】-- T3 -- 数字游戏

zhangyuqiTAT约 1 分钟
原文
文章信息与版本

文章信息

发布
2025年5月11日
收录
2025年12月12日
更新
2026年11月21日
篇幅
约 1 分钟

版本

  1. v1当前

https://cspjs.online/contest/756/problem/3

C++
#include<bits/stdc++.h>
#define LL long long
using namespace std;
class game{
	public:
		long long a(int n){
			return (n+1)*9;
		}
};
game ss;
int main(){
	freopen("game.in","r",stdin);
	freopen("game.out","w",stdout);
	string s;
	cin>>s;
	cout<<ss.a(s.size()) ;
	return 0;
}//面向对象 yyds!
原文