3.20打卡day34

进阶2.回文数

问题描述

1221是一个非常特殊的数,它从左边读和从右边读是一样的,编程求大于等于n的所有这样的四位十进制数。

个人总结

本题可以枚举所有可能的千位 a(1 到 9),十位和百位 b(0 到 9),构造数num = a*1000 + b*100 + b*10 + a,然后判断num>=n就输出。

cpp 复制代码
#include <bits/stdc++.h>
using namespace std;



int main() {
    int n;
    cin >> n;

    for (int a = 1; a <= 9; a++) {
        for (int b = 0; b <= 9; b++) {
            int num = a * 1000 + b * 100 + b * 10 + a;
            if (num >= n) {
                cout << num << endl;
            }
        }
    }

    return 0;
}

计算机英语翻译

原文:

In recent years, pre-trained models have played an important role in artificial intelligence research. Researchers typically first train a general model using large-scale datasets and then fine-tune it on specific tasks. In this way, the model can utilize the knowledge learned during the pre-training stage to improve the performance of downstream tasks. For example, in the field of natural language processing, many language models are pre-trained on massive text corpora and achieve excellent results in tasks such as text classification, machine translation, and question answering. The pre-training and fine-tuning framework not only reduces training costs but also improves the generalization ability of models. Therefore, this approach has become an important paradigm in modern artificial intelligence research.

翻译:

近年来,预训练模型在人工智能研究中扮演了重要角色。研究者们通常首先使用大规模的数据集来训练一个总体的模型,然后在特定任务中进行微调。以这种方式,这个模型可以xx预训练阶段学到的知识来提升xx任务的表现。例如,在自然语言处理领域,许多语言模型在大量文本xx上进行预训练,并且在文本分类、机器翻译和问题回答等任务中取得优异的成功。预训练和微调架构不仅减少了训练开销而且提升了模型的总体能力。因此,这种方式已经成为现代人工智能研究的重要方式。

计算机英语单词扇贝打卡

相关推荐
天若有情67314 小时前
自研极简C++软交互事件系统:干掉观察者模式、碾压前端事件机制
c++·观察者模式·交互·事件
罗湖老棍子14 小时前
The xor-longest Path(信息学奥赛一本通- P1478)
算法·字符串·字典树··lca最近公共祖先
basketball61614 小时前
C++ 继承完全指南:从 is-a 关系到虚继承的底层真相
开发语言·c++
whuhewei14 小时前
React diff算法为什么是DFS,不是BFS
算法·react.js·深度优先
IOT-Power15 小时前
C++ 工厂模式
c++
Huangjin007_15 小时前
【C++ STL篇(十)】深入理解 AVL 树:代码实现、旋转图解与平衡因子详解
开发语言·c++
小明同学0115 小时前
C++后端项目:统一大模型接入 SDK(四)
服务器·开发语言·c++·计算机网络·chatgpt
向日的葵00615 小时前
从IO视角深度对比:BST、红黑树、B树、B+树
数据结构·b树
EdmundXjs15 小时前
大模型核心概念解读
人工智能·算法
lookaroundd15 小时前
llm-compressor 普通量化调用链分析
python·算法