首页 > 其他分享 >浅玩 ChatGPT

浅玩 ChatGPT

时间:2022-12-06 15:58:01浏览次数:70  
标签:代码 FFT should interpreter reply ChatGPT

最近 OpenAI 推出了一个新的项目叫 ChatGPT。这个项目目前是免费的,不消耗任何积分,但是需要一个 OpenAI 的账号才能使用。网址

这几天尝试了一下,感觉非常厉害,于是记录一下一些技巧。

编写代码

你可以跟他先说一句:Do you know competitive programming?,然后再直接给他写任何一个 OI 的题目,它会给你写出一个解析和一个暴力代码。

如果你真的很想玩它,你可以跟他说:I got TLE when I use your code. Can you optimize it?,或者你想让它用某个算法去实现,可以写:Can you implement this problem with segment tree / segment tree with lazy tag / splay / **FFT**?

至少我让他写 FFT 他还是给出了一个递归版的 FFT(

不过这个东西生成代码是有长度限制的,所以尽量不要让它写复杂的东西,要不然它写半天写不完。

如果它的代码有哪里有明显错误,你可以直接给他指出,然后他就会 Yes, you're right.,然后开始改自己的代码(

并且记得附上 using C++,要不然它只会给出一个伪代码。

模拟终端

这个操作是从一个文章里看到的,感觉挺有意思,而且这东西懂得是真的多。

我按着它的改了一个 Python 的:

l want you to act as a Python interpreter. l will type commands and you will reply with what the
interpreter should show. I want you to only reply with the interpreter output inside one unique code block, and nothing else. Do no write explanations. Do not type anything unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. 

You should output the following texts first:

```
Python 3.8.10 (default, Jun  2 2021, 10:49:15) 
[GCC 9.4.0] on linux
Type `help`, `copyright`, `credits` or `license` for more information.
>>> 
```

When I type `print(5 + 3)`, you should reply with:

```
>>> print(5 + 3)
8
>>>
```

测试挺不错,虽然它不会多项式乘法吧))

image

(正确的应该是 \(3x^3+11x^2+16x+10\))

image

《我让 AI 训练 AI》

数学结论证明

直接写完让他证明,尽量翻译的好一些,然后如果出不来多试几次。

image

(经过多次修改问题与多次尝试后给出的证明,虽然我没看,我不知道对不对,但是看起来挺高级)

标签:代码,FFT,should,interpreter,reply,ChatGPT
From: https://www.cnblogs.com/apjifengc/p/16955502.html

相关文章

  • OpenAI 推出超神 ChatGPT 注册教程来了
    前几天,OpenAI推出超神ChatGPT,非常火爆。但是呢,因为不可抗力原因,大部分人无法体验到。这里我分享一下注册的攻略。准备首先能能访问Google(前置条件,不能明确说,懂得都......
  • Gepetto:使用chatGPT来对函数功能进行分析并重命名变量的IDA插件
    最近OpenAI的chatGPT很火,chatGPT是一个大型的语言模型,能够生成人类语言的文本,主要用于对话式的问答和聊天,以及模拟人类的对话行为有关chatGPT的介绍就不多赘述了,相关内容......
  • ChatGPT 编写的 Rust 二叉树
    //定义二叉树节点structNode{  //节点值  value:i32,  //左子树  left:Option<Box<Node>>,  //右子树  right:Option<Box<Node......