• 个人简介

    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    

    十年 OI 一场空,不开 O2 见祖宗

    #pragma GCC optimize(2)
    

    没开 O2\text{O2}

    $114514 \ \text{ms} \ \texttt{\color{#FF0000}Time Limit Exceeded}$

    开了 O2\text{O2}

    0 ms Accepted0 \ \text{ms} \ \texttt{\color{#25ad40}Accepted}

    数据千万条,清空第一条

    多测不清空,爆零两行泪

    清空不规范,超时总相伴

    #include <cassert>
    #include <cctype>
    #include <cerrno>
    #include <cfloat>
    #include <ciso646>
    #include <climits>
    #include <clocale>
    #include <cmath>
    #include <csetjmp>
    #include <csignal>
    #include <cstdarg>
    #include <cstddef>
    #include <cstdio>
    #include <cstdlib>
    #include <cstring>
    #include <ctime>
    #include <ccomplex>
    #include <cfenv>
    #include <cinttypes>
    #include <cstdalign>
    #include <cstdbool>
    #include <cstdint>
    #include <ctgmath>
    #include <cuchar>
    #include <cwchar>
    #include <cwctype>
    #include <algorithm>
    #include <bitset>
    #include <complex>
    #include <deque>
    #include <exception>
    #include <fstream>
    #include <functional>
    #include <iomanip>
    #include <ios>
    #include <iosfwd>
    #include <iostream>
    #include <istream>
    #include <iterator>
    #include <limits>
    #include <list>
    #include <locale>
    #include <map>
    #include <memory>
    #include <new>
    #include <numeric>
    #include <ostream>
    #include <queue>
    #include <set>
    #include <sstream>
    #include <stack>
    #include <stdexcept>
    #include <streambuf>
    #include <string>
    #include <typeinfo>
    #include <utility>
    #include <valarray>
    #include <vector>
    #include <array>
    #include <atomic>
    #include <chrono>
    #include <codecvt>
    #include <condition_variable>
    #include <forward_list>
    #include <future>
    #include <initializer_list>
    #include <mutex>
    #include <random>
    #include <ratio>
    #include <regex>
    #include <scoped_allocator>
    #include <system_error>
    #include <thread>
    #include <tuple>
    #include <typeindex>
    #include <type_traits>
    #include <unordered_map>
    #include <unordered_set>
    #include <shared_mutex>
    #include <charconv>
    #include <filesystem>
    

    你说的对,但是《 CSP 》是由 CCF_NOI 自主研发的一款全新开放世界冒险游戏。游戏发生在一个被称作「 NOIP 」的幻想世界,在这里,被神选中的人将被授予「 AK IOI 」,导引 IOI 之力。你将扮演一位名为「 巨蒻」的神秘角色,在自由的旅行中邂逅性格各异、能力独特的同伴们,和他们一起击败强敌,找回失散的亲人——同时,逐步发掘「CSP 」的真相。

    毫不夸张地说,《 CSP 》是 CCF_NOI 迄今为止规模最为宏大,也是最具野心的一部作品。即便在经历了 10 年的艰苦战斗后,游戏还有许多尚未开 O3 的地方,错过的 #pragma GCC optimize(3,"Ofast","inline"),以及从未使用过的 ios::sync_with_stdio(0)

    • Waiting\texttt{\color{#BEBEBE}Waiting} 评测:评测请求正在等待被评测机抓取
    • Fetched\texttt{\color{#EEC900}Fetched} 评测:评测请求已被评测机抓取,正在准备开始评测
    • Compiling\texttt{\color{#FFD700}Compiling} 评测:正在编译中
    • Running\texttt{\color{#FFD700}Running} 评测:编译成功,正在评测中
    • Accepted\texttt{\color{#25ad40}Accepted} 通过:程序输出完全正确
    • Wrong Answer\texttt{\color{#ff4f4f}Wrong Answer} 不通过:程序输出与标准答案不一致(不包括行末空格以及文件末空行)
    • Time Limit Exceeded\texttt{\color{#ff4f4f}Time Limit Exceeded} 不通过:程序运行时间超过了题目限制
    • Memory Limit Exceeded\texttt{\color{#ff4f4f}Memory Limit Exceeded} 不通过:程序运行内存空间超过了题目限制
    • Runtime Error\texttt{\color{#ff4f4f}Runtime Error} 不通过:程序运行时错误(如数组越界、被零除、运算溢出、栈溢出、无效指针等)
    • Compile Error\texttt{\color{#ff4f4f}Compile Error} 不通过:编译失败
    • System Error\texttt{\color{#ff4f4f}System Error} 错误:系统错误(如果您遇到此问题,请及时在讨论区进行反馈)
    • Canceled\texttt{\color{#BEBEBE}Canceled} 其他:评测被取消
    • Unknown Error\texttt{\color{#ff4f4f}Unknown Error} 其他:未知错误
    • Ignored\texttt{\color{#BEBEBE}Ignored} 其他:被忽略

    好 康 的 全 排 列

    #include
    #include
    #include
    #include
    
    using namespace std;
    
    int n,a[10001];
    bool v[15];
    
    int main(){
    cin >> n;
    for (int i = 1; i <= n; i++){
    a[i] = i;
    }
    system("color 0a");
    do {
    for (int i = 1; i <= n; i++){
    cout << setw(5) << a[i];
    }
    cout << '\n';
    } while (next_permutation(a + 1,a + n + 1));
    return 0;
    }
    // 建议输入 10000
    

    可爱的高精度

    #include<iostream>
    
    using namespace std;
    
    const int MAXN = 1e5 + 10;
    
    long long r;
    int c;
    char op;
    
    struct bigint{
      long long len,sz[MAXN] = {0};
      long long &operator [] (long long a){
        return sz[a];
      }
      void input(){
        string s;
        cin >> s;
        len = s.size();
        for (int i = 0; i < len; i++){
          sz[i] = s[len - i - 1] - '0';
        }
      }
      void output(){
        for (; len - 1 > 0 && !sz[len - 1]; len--){
        }
        for (int i = len - 1; i >= 0; i--){
          cout << sz[i];
        }
        cout << '\n';
      }
      bigint operator + (const bigint &b){
        bigint c;
        c.len = max(len,b.len) + 1;
        for (int i = 0; i < c.len; i++){
          c[i] = sz[i] + b.sz[i];
        }
        for (int i = 0; i < c.len - 1; i++){
          c[i + 1] += c[i] / 10,c[i] %= 10;
        }
        return c;
      }
      bigint operator - (const bigint &a){
        bigint c;
        c.len = max(len,a.len);
        for (int i = 0; i < c.len; i++){
          c[i] = sz[i] - a.sz[i];
        }
        for (int i = 0; i < c.len; i++){
          if (c[i] < 0){
            c[i] += 10,c[i + 1]--;
          }
        }
        return c;
      }
      bigint operator * (const bigint &b){
        bigint c;
        c.len = len + b.len;
        for (int i = 0; i < len; i++){
          for (int j = 0; j < b.len; j++){
            c[i + j] += sz[i] * b.sz[j];
          }
        }
        for (int i = 0; i < c.len - 1; i++){
          c[i + 1] += c[i] / 10,c[i] %= 10;
        }
        return c;
      }
      bigint operator / (int b){
        bigint c;
        c.len = len;
        r = 0;
        for (int i = c.len - 1; i >= 0; i--){
          r = r * 10 + sz[i];
          c[i] = r / b;
          r %= b;
        }
        return c;
      }
    }a,b,ans;
    
    int main(){
      return 0;
    }
    
  • 通过的题目

  • 最近活动

    This person is lazy and didn't join any contests or homework.
  • 最近编写的题解

  • Stat

  • Rating

题目标签

模拟
26
NOIp 普及组
19
字符串
15
枚举
13
暴力
13
数论
9
数学
9
USACO
9
搜索
8
动态规划
6
dp
6
NOIp 提高组
5
递推
5
递归
4
洛谷原创
4
1998
3
2001
3
深度优先搜索
3
DFS
3
素数判断
3