工具箱
西行妖下的亡灵
这个作者很懒,什么都没留下…
展开
-
暂存头文件模板
#include<pch.h>#include <iostream>#include <cstdio>#include <bits/stdc++.h>#include <queue>#include <map>#include <algorithm>#include <stack>#i...原创 2019-07-28 23:37:21 · 76 阅读 · 0 评论 -
JAVA在OJ上提交程序的注意事项
1. Main类与Scanner1.1 Main类你提交的所有程序都应该以如下形式出现public class Main{ public static void main(String[] args){ //其他代码 }}即,代码中必须存在一个public class Main。不允许出现其他的public class。1.2 使用Sc...转载 2019-07-28 23:37:03 · 588 阅读 · 0 评论 -
Python在Oj上提交程序的一些套路
0. FAQ0.1 提交后提示“答案错误”或者“格式错误”PTA检查答案正确与否是通过字符串匹配实现的。所以可能有以下几种原因:格式错误:程序的输出要与题目中的样例输出格式一样(输出内容根据运行结果不同而变化),程序输出的结果多一个空格、少一个空格,都不行。 比如输出样例为1 + 2 = 3,你的输出却是1+2=3,错误原因分析:在+与=两边少了相应的空格,在3后面却多了空格。 ...转载 2019-07-28 23:36:57 · 215 阅读 · 0 评论 -
VS CODE Python setting and launch.json
Setting{ "python.linting.pylintArgs": ["--disable=C,R"]}launch{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 ...原创 2019-07-28 23:37:15 · 160 阅读 · 0 评论 -
VS CODE JAVA launch.json
{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type":...原创 2019-07-28 23:37:09 · 496 阅读 · 1 评论