Codeforces Round #112 (Div. 2) & #125 (Div. 2)总结(不要用pow&log!!!)
    
            
摘要:1.遇到需要用大数处理的问题,一定要先去思考能避开大数的程序,不要上来就用c++大数模板或java大数函数,前者敲起来繁琐,后者效率太低。#include <stdio.h>#include <iostream>using namespace std;int main(){ long long k,b,n,t,z; while(cin >> k >> b >> n >>t){ long long x=1; int cou=0; while(x<=t && cou<=n){ x=k*x+b; co
        
阅读全文
 
        
            
    C++继承
    
            
摘要:1#include <iostream> 2#include <string.h> 3#include <stdio.h> 4using namespace std; 5class student 6{ 7 public: 8 char name[100]; 9 int number; 10 double English,Math,Computer; 11 void inputPublicGreat() 12 { 13 cout << "输入英语成绩:"; 14 ...
        
阅读全文