信息奥赛学习网

归档

2024 年 10 月

import pandas as pd import numpy as np # 读取 Excel 文件 df1 = pd.read_excel('oa_student.xlsx') df2 = pd.read_excel('(967人)(2024.10.08)锦绣校区2024学年第一学期学生基本信
import pandas as pd def insert_blank_rows(df, field_name): new_rows = [] for index, row in df.iterrows(): new_rows.append(row)

2024-10-24

const char endl = '\n'; std::ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);

2024-10-24

#pragma GCC optimize(3,"Ofast","inline") #pragma G++ optimize(3,"Ofast","inline")

2024-10-20

[capture list] (parameters) -> return_type { // 函数体 }; #include <iostream> #include <vector> #include <algorithm> struct Node { int v;

2024 年 01 月

2024-01-02

递归快速幂 //递归快速幂 int qpow(int a, int n) { if (n == 0) return 1; else if (n % 2 == 1) return qpow(a, n - 1) * a; else {

2023 年 12 月

四舍六入五成双 #include<bits/stdc++.h> using namespace std; int main(){ printf("%.2f\n",9.825); //输出9.82 printf("%.2f\n",9.825001); //输出9.83 printf("%.2f\
lower_bound & upper_bound #include<bits/stdc++.h> using namespace std; int main(){ vector<int> v={1,2,3,4,5}; auto p = lower_bound(v.begin(),v.end(

2023 年 11 月

2023 年 10 月