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

计算机英语单词扇贝打卡

相关推荐
6Hzlia几秒前
【Hot 100 刷题计划】 LeetCode 39. 组合总和 | C++ 回溯算法与 startIndex 剪枝
c++·算法·leetcode
患得患失94912 分钟前
【前端WebSocket】心跳功能,心跳重置策略、双向确认(Ping-Pong) 以及 指数退避算法(Exponential Backoff)
前端·websocket·算法
海砥装备HardAus15 分钟前
飞控算法中双环串级PID深度解析:角度环与角速度环的协同机制
stm32·算法·无人机·飞控·串级pid
宵时待雨16 分钟前
优选算法专题1:双指针
数据结构·c++·笔记·算法·leetcode
zsc_11817 分钟前
pvz3解码小游戏求解算法
算法
程序员学习随笔18 分钟前
深入剖析 std::optional:实现原理、性能优化与安全编程实践
c++·安全·空值
汀、人工智能19 分钟前
[特殊字符] 第107课:LRU缓存(最后一课[特殊字符])
数据结构·算法·链表·数据库架构·哈希表·lru缓存
数据知道25 分钟前
claw-code 源码分析:结构化输出与重试——`structured_output` 一类开关如何改变「可解析性」与失败语义?
算法·ai·claude code·claw code
tankeven26 分钟前
HJ172 小红的矩阵染色
c++·算法
2301_8227032030 分钟前
Flutter 框架跨平台鸿蒙开发 - 智能植物生长记录应用
算法·flutter·华为·harmonyos·鸿蒙