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上进行预训练,并且在文本分类、机器翻译和问题回答等任务中取得优异的成功。预训练和微调架构不仅减少了训练开销而且提升了模型的总体能力。因此,这种方式已经成为现代人工智能研究的重要方式。

计算机英语单词扇贝打卡

相关推荐
小张会进步3 小时前
数组:二维数组
java·javascript·算法
佑白雪乐3 小时前
LCR 175. 计算二叉树的深度
算法·深度优先
阿Y加油吧3 小时前
力扣打卡day07——最大子数组和、合并区间
算法
Larry_Yanan3 小时前
Qt网络开发之基于 QWebEngine 实现简易内嵌浏览器
linux·开发语言·网络·c++·笔记·qt·学习
想吃火锅10053 小时前
【leetcode】105. 从前序与中序遍历序列构造二叉树
算法·leetcode·职场和发展
2401_831824964 小时前
嵌入式C++驱动开发
开发语言·c++·算法
靠沿4 小时前
【优选算法】专题十八——BFS解决拓扑排序问题
算法·宽度优先
cui_ruicheng4 小时前
C++数据结构进阶:哈希表实现
数据结构·c++·算法·哈希算法·散列表
光电笑映4 小时前
高阶数据结构之红黑树详解
数据结构