Prologue

感觉属于典型的差生文具多

C++

Codeforces,多组数据

/**
 *   Tribuarius
 *   $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND
**/

#include <bits/stdc++.h>
typedef int64_t i64;
typedef uint64_t u64;
typedef uint32_t u32;

#ifdef ONLINE_JUDGE
    #define debug(...) 42
#else
    #define debug(args...) printf(args);
#endif

void solve(void) {
    $0
}

int main(void) {
    int t;
    scanf("%d", &t);
    for(int i = 0; i < t; i ++) solve();
    return 0;
}

Codeforces,一组数据

/**
 *   Tribuarius
 *   $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND
**/

#include <bits/stdc++.h>
typedef int64_t i64;
typedef uint64_t u64;
typedef uint32_t u32;

#ifdef ONLINE_JUDGE
    #define debug(...) 42
#else
    #define debug(args...) printf(args);
#endif

int main(void) {
    $0
    return 0;
}

C

写 PTA 用的模板

/**
 *   Tribuarius
 *   $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND
**/

#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
typedef int64_t i64;
typedef uint64_t u64;
typedef uint32_t u32;

int main(void) {
    $0
    return 0;
}

Python

与容器交互

from pwn import *

LOCAL_DEBUG = True
remote_ip = "127.0.0.1"
remote_port = $1
local_process = "./$2"
context(os = "linux", log_level = "debug")

if LOCAL_DEBUG:
    io = process(local_process)
else:
    io = remote(remote_ip, remote_port)

$0

添加新评论