31 行代码C++课堂示例
高精度加法
两个高精度数相加的普通实现
#include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin>>a>>b;
//翻转对齐#高精度
两个高精度数相加的普通实现
#include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin>>a>>b;
//翻转对齐两个高精度数相减的普通实现(包括小减大)
#include<bits/stdc++.h>
using namespace std;
int main(){
string a, b;
cin >> a >> b;单向链表的标准实现以及链表操作
#include<bits/stdc++.h>
using namespace std;
struct Node{
int data;
Node *next;
};随机生成 1~100 之间的整数,通过输入来猜数字大小
#include <bits/stdc++.h>
using namespace std;
int main() {
srand(time(0));