牛客网在线判题系统使用帮助

1. 判题系统的编译器信息
C++:clang++11 -std=c++17 -O2
JAVA:javac 1.8 -encoding=utf-8
C: clang11 -std=gnu99 -O2
Python: python 2.7.3
Python3: python 3.9
C#: mcs 5.4
PHP: php 7.4
Javascript V8: d8 6.0
Javascript Node: Node 12.18
R: r 4.0
Go: go 1.14.4
Ruby : ruby 2.7.1
Rust: rust 1.44
Swift: swift 5.3
ObjectC: gcc 5.4
Pascal: fpc 3.0.2
Matlab: Octave 5.2
Bash: bash 4.3

2. 判题系统的输入输出
2.1 对于<剑指Offer>这种有函数定义的题目,你只要完成函数,返回相关的值就可以,不需要处理任何输入输出,不要在函数里输出任何东西。
2.2 对于传统ACM的OJ模式题目,你的程序需要stdin(标准输入)读取输入,然后stdout(标准输出)来打印结果,举个例子,你可以使用c语言的scanf或者c++的cin来读取输入,然后使用c语言的printf或者c++的cout来输出结果。代码禁止读取和写入任何文件,否则判题系统将会返回运行错误。OJ一次处理多个case,所以代码需要循环处理,一般通过while循环来出来多个case。以下是A+B题目的样例代码,http://www.nowcoder.com/questionTerminal/dae9959d6df7466d9a1f6d70d6a11417
C 64位输出请用printf("%lld")
#include <stdio.h>
int main() {
    int a,b; while(scanf("%d %d",&a, &b) != EOF) {//注意while处理多个case
        printf("%d\n",a+b);
    }
    return 0;
}
C++ 64位输出请用printf("%lld")
#include <iostream>
using namespace std;
int main() {
    int a,b; while(cin >> a >> b)//注意while处理多个case
        cout << a+b << endl;
}
JAVA,注意类名必须为Main, 不要有任何package xxx信息
注意hasNext和hasNextLine的区别,详细见<java的oj输入注意点>
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in); while (in.hasNextInt()) { //注意while处理多个case  int a = in.nextInt();
            int b = in.nextInt();
            System.out.println(a + b);
        }
    }
} 
Python
import sys
try: 
	while True:
		line = sys.stdin.readline().strip()
		if line == '':
			break 
		lines = line.split()
		print int(lines[0]) + int(lines[1])
except: 
	pass
Python3
import sys 
for line in sys.stdin:
    a = line.split()
    print(int(a[0]) + int(a[1]))
JavaScript(V8)
while(line=readline()){
    var lines = line.split(' ');
    var a = parseInt(lines[0]);
    var b = parseInt(lines[1]);
    print(a+b);
}
JavaScript(Node)
var readline = require('readline');
const rl = readline.createInterface({
        input: process.stdin,
        output: process.stdout
});
rl.on('line', function(line){
   var tokens = line.split(' ');
    console.log(parseInt(tokens[0]) + parseInt(tokens[1]));
});
C#
public class Program {
  public static void Main() {
    string line;
    while ((line = System.Console.ReadLine ()) != null) {// 注意,如果输入是多个测试用例,请通过while循环处理多个测试用例
      string[] tokens = line.Split();
      System.Console.WriteLine(int.Parse(tokens[0]) + int.Parse(tokens[1]));
    }
  }
}
Php
<?php  
    while(fscanf(STDIN, "%d %d", $a, $b) == 2)  
    	echo ($a + $b)."\n";
Go
package main
import (
    "fmt"
)
func main() {
  a:=0
  b:=0
  for {
        n, _ := fmt.Scan(&a,&b)
        if n == 0 {
                break
        } else {
                fmt.Printf("%d\n",a+b)
        }
  }
}
R语言
lines=readLines("stdin")
for(l in lines){
        if(l == ""){
                break;
        }
        ll = strsplit(l, " ")[[1]]
        a=ll[1];
        b=ll[2];
        cat(as.numeric(a)+as.numeric(b));
        cat('\n');
}
Ruby
a, b = gets.split(" ").map {|x| x.to_i}
puts (a + b)
Rust
fn main() {
    let mut input = String::new();
    std::io::stdin().read_line(&mut input).unwrap();
    let nums:Vec<&str>= input.trim().split(" ").collect();
    let num1: i32 = nums[0].parse().unwrap();
    let num2: i32 = nums[1].parse().unwrap();
    let sum = num1 + num2;
    println!("{}\n", sum);
}
Swift
import Foundation
while let line = readLine() {
    let parts = line.split(separator: " ")
    print(Int(parts[0])! + Int(parts[1])!)
}
ObjectC
#import <Foundation/Foundation.h>
int main(int argc,char * argv[])
{
    NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];
    int a,b;
    while(scanf("%d %d",&a, &b) != EOF)
        printf("%d\n",a+b);
    [pool drain];
    return 0;
}
Pascal
var i, j : integer;
begin
   while not eof do
   begin
      readln(i, j);
      writeln(i + j);
   end;
end.
matlab
try
    while 1
        line = input('', 's');
        lines = strsplit(line);
        printf("%d\n", str2num(lines{1}) + str2num(lines{2}));
    end
catch
end
Bash
#!/bin/bash
read -a arr
while [ ${#arr[@]} -eq 2 ]
    do
        sum=$((${arr[0]}+${arr[1]}))
        echo $sum
        read -a arr
    done
exit 0

3. 判题系统状态
等待评测: 评测系统还没有评测到这个提交,请稍候
正在评测: 评测系统正在评测,稍候会有结果
编译错误:您提交的代码无法完成编译,点击“编译错误”可以看到编译器输出的错误信息
答案正确: 恭喜!您通过了这道题
运行错误: 您提交的程序在运行时发生错误,可能是空指针
部分正确: 您的代码只通过了部分测试点,继续努力!
格式错误: 您的程序输出的格式不符合要求(比如空格和换行与要求不一致)
答案错误: 您的程序未能对评测系统的数据返回正确的结果
运行超时: 您的程序未能在规定时间内运行结束
内存超限: 您的程序使用了超过限制的内存
异常退出: 您的程序运行时发生了错误
返回非零: 您的程序结束时返回值非 0,如果使用 C 或 C++ 语言要保证 int main 函数最终 return 0
浮点错误: 您的程序运行时发生浮点错误,比如遇到了除以 0 的情况
段错误 : 您的程序发生段错误,可能是数组越界,堆栈溢出(比如,递归调用层数太多)等情况引起
多种错误: 您的程序对不同的测试点出现不同的错误
内部错误: 请仔细检查你的代码是否有未考虑到的异常情况,例如非法调用、代码不符合规范等。

4. 开始练习吧


5. 有任何问题加QQ群 244930442

</object>#笔试题目#
全部评论
在线编程,代码提交时提示出现错误,请稍后重试
点赞 回复
分享
发布于 2016-07-31 21:00
剑指offer部分,用C++写子函数,能不能调用STL模板库?
点赞 回复
分享
发布于 2015-06-03 23:43
阅文集团
校招火热招聘中
官网直投
import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scn = new Scanner(System.in); int M = scn.nextInt(); int N = scn.nextInt(); int K = scn.nextInt(); ArrayList<Integer> li = new ArrayList<Integer>(); HashMap<Integer,Node> map = new HashMap<Integer,Node>(); int temp = 0; for(int i=1; i<M+1; i++) { for(int j=1; j<N+1; j++) { temp = scn.nextInt(); if(temp > 0) { Node node = new Node(); node.setM(i); node.setN(j); map.put(temp, node); li.add(temp); } } } Collections.sort(li); Collections.reverse(li); int maxNum = 0; int tempGo = 0; int tempBack = 0; Node tempNode = map.get(li.get(0)); tempGo = tempNode.getM() + 1; tempBack = tempNode.getN(); if(tempGo + tempBack <= K) { maxNum = li.get(0); } for(int i=1; i<li.size(); i++) { tempBack = map.get(li.get(i)).getM(); tempGo += Math.abs(map.get(li.get(i)).getN() - map.get(li.get(i-1)).getN()) + Math.abs(map.get(li.get(i)).getM() - map.get(li.get(i-1)).getM())+ 1; if(tempBack + tempGo <= K) { maxNum += li.get(i); } else { break; } } System.out.print(maxNum); } } class Node { int m; int n; public void setM(int m) { this.m = m; } public int getM() { return m; } public void setN(int n) { this.n = n; } public int getN() { return n; } }
点赞 回复
分享
发布于 2015-09-28 21:01
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int arr[][] = new int[n+2][n+2]; int f[][] = new int[n+2][n+2]; for (int i = 0; i<=n; i++){ arr[i][i+1] = 0; } for (int i = 1; i<=n; i++){ for (int j = 1; j<=i; j++){ arr[i][j] = in.nextInt(); } } for (int i = 1; i<=n; i++){ f[n][i] = arr[n][i]; } for (int i =n-1; i>0; i--){ for (int j = 1; j<=n; j++){ f[i][j] = Math.max(f[i+1][j], f[i+1][j+1])+arr[i][j]; } } System.out.println(f[1][1]); in.close(); } } 我的输入输出 input: 1 100 output: 100 答案错误:您提交的程序没有通过所有的测试用例 测试用例: 1 100 对应输出应该为: 100 能不能把我的程序在你的机子上run的结果给我看下,让我知道究竟差别在哪里,什么叫对应输出的应该为100,那我输出的不就是100吗?
1 回复
分享
发布于 2015-12-24 15:06
本题第三个测试用例有问题,我能证明! 本题第三个测试用例有问题,我能证明! 本题第三个测试用例有问题,我能证明! 第三个测试用例的输入多了一个空格,对于python来说会导致运行错误。根据题目描述,最后一个输入后面是没有空格的,所以是题目输入的问题! 运行错误不会给出具体的解释错误在哪里,我怎么知道 ? 因为我是运行错多次百思不得其解之后,用了 try ... except  模块,将错误信息直接当作最终答案输出看到的。。。 下面是证明截图: 代码如下: #coding=utf-8 def count(a,b): count=0 for i in a: if i==b: count=count*10+int(b) return count s=raw_input() a,b,c,d=s.split(" ") print count(a,b)+count(c,d)
点赞 回复
分享
发布于 2016-01-22 11:05
Solution.java:6: error: cannot find symbol if (array[row][col] == tartget) return true; ^ symbol: variable tartget location: class Solution Solution.java:7: error: cannot find symbol if (array[row][col] > tartget){ ^ 为什么报无法识别if这个符号?
点赞 回复
分享
发布于 2016-04-28 14:56
import java.util.*; public class Main { enum DIRECTION { ASCEND, DESCEND }; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String str = scanner.next(); if(isSame(str)){ System.out.println(str+" - "+str+" = 0000"); } else { String a; String b; int c; do{ a=doOrder(str, DIRECTION.DESCEND); b=doOrder(str, DIRECTION.ASCEND); c=Integer.parseInt(a)-Integer.parseInt(b); System.out.println(a+" - "+b+" = "+c); str=String.valueOf(c); } while(c!=6174); } } private static boolean isSame(String str) { boolean b = true; char c = str.charAt(0); for (int i = 1; i < str.length(); i++) { if (c != str.charAt(i)) { b = false; break; } } return b; } private static String doOrder(String str, DIRECTION d) { final int rev; if (d == DIRECTION.ASCEND) { rev = 1; } else { rev = -1; } ArrayList<String> list = new ArrayList<>(); for (int i = 0; i < str.length(); i++) { list.add(str.substring(i, i+1)); } list.sort(new Comparator<String>() { @Override public int compare(String o1, String o2) { return rev * o1.compareTo(o2); } }); StringBuilder sb=new StringBuilder(); for(String i:list){ sb.append(i); } return sb.toString(); } } 提示编译错误,eclipse没有出错。 编译错误:您提交的代码无法完成编译 第53行: error: cannot find symbol 指向list.sort(new Comparator
点赞 回复
分享
发布于 2016-08-02 01:36
剑指offer二维数组中的查找,题目链接如下 http://www.nowcoder.com/practice/abc3fe2ce8e146608e868a70efebf62e?tpId=13&tqId=11154&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking class Solution { public: bool Find(vector<vector<int> > array,int target) { bool found = false; if(!array.empty()) { int h = array.size(); int w = array[0].size(); if((target>array[h-1][w-1])||(target<array[0][0])) return found; int i = 0, j = w-1; while((j>=0)&&(i<h)) { if(array[i][j]==target) { found = true; break; } else if(array[i][j]>target) j--; else i++; } } return found; } };   问题,提交的代码有段错误。 (在本机的GCC GNU 编译器可以通过) 1.猜想可能是,没有考虑数组为空的case。 添加相应的代码以后还是出现了段错误的问题。 2.猜想可能是数组越界 反复查看代码,没有看出来在数组宽和高 3.尝试提交代码的一部分,从答案错误一直提交到段错误。 出现多错误问题的代码锁定在这一部分 while((j>=0)&&(i<h)) { if(array[i][j]==target) { found = true; break; } else if(array[i][j]>target) j--; else i++; } 4.修改代码。发现如下情况 当把while循环里的内容改成 while(i<h&&j>=0) { bool ife = (array[i][j]==target); i++; } 或者 while(i<h&&j>=0) { bool ife = (array[i][j]==target); j--; } 都只是出现答案错误 可是当改变部分如下的代码提交时出现段错误 while(i<h&&j>=0) { if(target==array[i][j]) { return true; } i++; } 不清楚为什么一添加了return语句或者用一个变量保存的false值改变成true值就会出现段错误。 写break语句也只是答案错误。 提交了50多遍了,测了一个早上。暂时不清楚也找不到问题在哪。 管理员有空帮忙看看这个问题呀
点赞 回复
分享
发布于 2016-08-17 12:33
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNext()){ System.out.println(new Main().ReverseSentence(in.nextLine())); } } public String ReverseSentence(String str) { if(str.equals(" ")){ return " "; } String[] split = str.split(" "); int len=split.length; StringBuffer sb=new StringBuffer(); for (int i = len-1; i >=0 ; i--) { if(i!=0){ sb.append(split[i]+" "); }else{ sb.append(split[i]); } } return sb.toString(); } } Q:系统评分有误啊!明明我在IDE通过,他偏偏说我答案错的。无语~ 地址:http://www.nowcoder.com/questionTerminal/3194a4f4cf814f63919d0790578d51f3
点赞 回复
分享
发布于 2016-08-19 12:09
代码故意改错后,测试用例能过一部分,按正确逻辑居然是请检查是否存在数组越界非法访问等情况
点赞 回复
分享
发布于 2016-08-22 17:08
import java.util.Scanner; public class Solution { public String ReverseSentence(String str) { if(str.equals(" ")||str==null){ return " "; } String[] split = str.split(" "); int len=split.length; StringBuffer sb=new StringBuffer(); for (int i = len-1; i >=0 ; i--) { if(i!=0){ sb.append(split[i]+" "); }else{ sb.append(split[i]); } } return sb.toString(); } } 编程地址:http://www.nowcoder.com/practice/3194a4f4cf814f63919d0790578d51f3?rp=2&ru=/activity/oj&qru=/ta/coding-interviews/question-ranking 报错: 您的代码已保存 答案错误:您提交的程序没有通过所有的测试用例 case通过率为60.00% 测试用例: " " 对应输出应该为: " " 你的输出为: "" Q:本人实在不懂,为何它判断我的输出是"",明明是" "。无语~求大神带走。
点赞 回复
分享
发布于 2016-08-22 21:34
测试用例: 98 10 49 384329296 939151343 104794929 144759741 670973514 615219401 6195949 494573296 531671982 924524885 445556150 979714539 305135424 13100710 933279554 201884968 849473494 629728402 45839998 279195691 43 59 114933193 94376098 129126178 703663685 283109766 549559057 904883830 50826403 126820871 967579651 10514204 618567574 296881091 75984456 110960605 899082639 186973381 486017484 261038978 120496072 686360139 165683067 496500557 356387835 478451362 153266766 914621987 156768861 644790536 792055790 978018424 508796608 857686880 233153496 246130075 654666403 419511640 336298957 792589973 218613870 46276720 969709982 455248969 678166300 245289471 204515435 317080845 63812286 337224458 522121173 672372969 513539469 321078190 882218066 4914952 439693187 432164582 600435520 494127387 479730360 174549682 986822150 503669269 936351256 288372954 606625177 444477530 31217375 684411757 985986567 492411317 348007859 370115432 62918843 915039977 946497272 368277175 379588149 357083584 434486570 764360768 157230000 952702768 230328322 8070891 355995276 91 68 476504673 647519448 559723187 82208627 286882477 533003424 34255531 70699 981216671 574642762 579918953 62547916 123320829 124432226 476328782 986286705 887358320 704839472 510187630 614273517 141109090 591507920 564788055 308099223 433546622 999040261 842514381 425011727 641485767 83378029 968174137 412105818 420700129 983880757 252779577 536675451 265966135 972340116 562754520 697236252 778909332 861809390 800702362 65044610 721541103 894142090 903028571 727238026 5562836 152787831 307612383 48182752 999156523 649046168 94997394 40851237 184951797 76014970 623809403 349471567 200852024 23157931 106763366 661520626 654320663 51110401 605007963 826744174 870136328 17628626 79057543 13704864 349877597 375525871 801853942 299318269 28424387 425776184 604812684 46678737 490980182 64725678 656218273 731986966 364102477 289420636 35147375 956907278 235588963 731339720 223257190 629661021 60851178 109489830 388044487 748835648 426564516 762385304 167861257 598117888 989370587 385576988 434274317 344508244 534144596 886580512 517122298 201121655 905373785 695565500 261362810 120689555 997766695 558022020 615003691 528241626 459611484 191533329 22673650 971430031 653846523 317668940 210506716 873787781 51035659 348819169 120900720 44828134 245645197 888235023 52696195 901686801 5451175 862058560 693535258 498823868 104075235 579259496 70977421 857069240 235391182 554718100 920595073 969198923 455814944 600573537 459274037 755491119 261410900 928938185 250940183 686751551 656198679 48165539 64362701 998114775 320256708 753450552 325339683 490686919 637843153 138990294 133620478 284457562 579646312 129742992 687543417 725683590 4465817 688037252 790138916 618866742 30030373 854800544 114628225 849703372 991299232 588058798 784474492 260678111 143350275 604398569 74 32 995277112 872294901 937026685 902889922 544447930 901518221 319610762 634454365 811183778 132544268 169443846 279403800 540414258 827069621 690451694 567476317 392562070 513925484 159359932 243247893 251452341 59161538 628997761 296353524 799100475 118954987 116674799 886734238 598806464 31870606 718825517 350444775 525173351 223699665 269382336 613393276 379284132 689920806 27754867 58055426 218442553 314435548 553978547 375829684 613071739 63157645 426596475 152036570 920575707 289209492 988438883 906297036 825754459 415865499 185149286 100245299 195561045 937481983 965148820 312231949 25312153 219593365 328780009 123166110 671553640 775462495 912878400 124094632 244837365 195904481 267159894 561011159 461338983 101300189 183701608 184419848 725482715 923326986 432799058 319633995 24931396 848618563 86267192 927191375 957075571 709584345 800373202 827819784 768044422 791377015 307265234 301595381 852161547 710678586 70950288 608066331 43632691 481187519 42700878 75604 709149937 148750309 375478255 356076899 340495882 817853166 408315093 341515886 426686149 866208910 581507357 196071602 135500316 814123770 5382284 265734014 573071185 936228078 572625377 240489032 127915748 41824567 511323578 378798730 328725402 205386261 920667898 45685051 969968756 509496293 879874440 270298416 770542885 980855363 944590147 172976936 677988961 205215123 984813757 108346470 705967212 343782409 219937633 465419922 970165258 517138113 673945782 178003796 80 94 768564869 948595156 120191564 424987968 35146832 947781077 470351340 100645351 122278999 1286014 139200828 938624613 48999829 53889202 270697558 243492960 75326116 138163529 477588074 321865810 87361877 559735838 147350337 468468968 882895274 856352995 82363349 94316553 921331941 114332448 735073118 693451613 447507422 769509760 4014086 685728923 294253990 19454536 140829364 978098910 714041163 751207105 481453022 62558858 307223023 739638751 118634152 19368248 45092017 385759484 999495873 910050677 843194405 323778282 18024076 135451105 194055915 617587259 793574640 381021541 32804233 584930399 538058605 97336718 703164059 268808750 356046540 184757238 746524082 230780400 163694896 86543843 488918860 779825176 222013969 2660722 207555223 660168811 202181006 737038288 716830520 387289970 159591733 51181428 212801596 789130295 846842771 512323528 5089204 782389395 369169762 348912329 184652124 334378153 76396919 393753883 69890105 116923473 771230862 658782920 886336155 350676424 123530800 358447529 735990068 279266156 374515197 995325200 680509917 625249675 933802954 615755602 280707921 983939435 91497076 193065080 144492590 268912529 100260193 884358012 670786797 772034076 273498736 871229950 11242982 568194694 581422427 916136739 52423383 611502811 818493582 434368570 135639837 11569570 614708269 5535013 123640179 403801804 441573886 621796548 879155934 286291378 128799344 653015588 237046277 454612354 70501299 90316305 468178284 292336580 5799371 271737791 546819815 111083770 260106656 483345747 454311806 314158357 190196704 180337392 6 66 818202511 191810636 181383683 29243666 310496455 921635553 129193460 248515103 85126353 80463125 15001421 666274626 3 9 383276873 76442089 566968917 661646280 618703794 438846984 91 50 588361780 227220603 670750255 157872682 16840907 163239701 26016066 751314430 137780650 692013084 39954283 935210026 642094589 578431148 33834467 720204061 44797313 727636650 617290532 101451245 782037575 105603385 847577851 774889784 24742858 827344044 214733183 248079721 3090598 990030214 527488320 476678002 58671235 392452672 29778367 914302996 444959487 689017733 882192485 574975085 722820673 132060032 182350473 98214020 61088175 211773959 904525834 328954925 122517097 501010384 198144001 606571957 342987568 538925406 426254174 48456026 504126769 35619168 296397641 540574894 231911579 55088948 314497179 796832186 650527410 574932993 369885498 493385399 894039926 185958223 811147576 731118676 10159398 97794073 592973534 427558789 500283861 872373822 115968285 104276744 818537612 174380780 295569883 513348070 399202491 450331587 783589259 60447540 182039749 525348115 13474566 419721336 920197404 373521912 688074803 273774926 425209408 461921618 363249821 991216773 142632610 72999727 693249252 341393389 515362717 899636268 901881396 774020624 301672620 2833773 382582577 499332521 63071618 773719264 886187463 353598696 639011001 85153738 747744242 56151628 788069341 19525806 这测试用例开头说给98组数据,实际上只给了8组,咋回事额?
点赞 回复
分享
发布于 2016-09-01 12:59
http://www.nowcoder.com/question/next?pid=2385858&qid=46127&tid=4911647 这一题本地测试能通过,上传到OJ一直说返回非0.不知道试了多少种输入输出方式了。 process.stdin.resume(); process.stdin.setEncoding('utf-8'); var input = ""; process.stdin.on('data', function (data) { input += data; }); process.stdin.on('end', function () { var line = input.split("\n"); var ll = line.length; var z = 0; var tokens = line[z].split(" "); var num = tokens[0]; var jj = 2*num + 1; for(var i = 1; i < jj; i = i + 2){ // process.stdout.write(i + '\n'); var result = []; var array = line[z+i].split(" "); var lenlen = array[1]; var aay = line[z+i+1].split(' '); var kk = aa(aay, lenlen); result.push(kk.join(' ')); process.stdout.write(result.join('\n') + '\n'); } }); function aa(arr, k){ var len = arr.length; var lenban = len/2; var arr1 = arr.slice(0, lenban); var arr2 = arr.slice(lenban); var res = []; for (var i = lenban - 1; i >= 0; i--) { res.push(arr2[i]); res.push(arr1[i]); }; k--; res = res.reverse(); if (k > 0) { return arguments.callee(res, k); } else { return res; } }
点赞 回复
分享
发布于 2016-09-09 14:47
Python 为何我在本地vim里面,写完,运行的都很好,但是粘贴提交的时候,就是unexpected indent 这种错误????好几个题都是这样, vim设置里面也已经设置了,自动tab变4个空格了啊,本地都好好的呢。
点赞 回复
分享
发布于 2016-10-15 12:12
提交上去之后提示错误,但给的案例却不全,只能看到案例的应该结果,和我的错误结果,看不到案例的输入
点赞 回复
分享
发布于 2017-05-10 19:01
问题的出入是这样描述的: 而提示确实这样的:
点赞 回复
分享
发布于 2017-05-10 19:10
可喜可贺呀,竟然支持纯js了!!!
点赞 回复
分享
发布于 2017-05-18 20:58
代码: let show=[] while(line=readline()){     show.push(line); } let num=show[0]; let input=show[1]; print(input) [编程题] 双核处理 javascript v8无法获取到想要的输入例子
点赞 回复
分享
发布于 2017-06-13 17:22
对于输出结果,题目有时候只说输出用空格隔开,而对于每行的最后一个数据,有些题目不能在每行最后加空格,而有些题目又必须加空格。傻傻分不清楚
点赞 回复
分享
发布于 2017-06-27 09:57
JavaScript 多行输入怎么解决??
点赞 回复
分享
发布于 2017-08-10 21:17

相关推荐

160 1272 评论
分享
牛客网
牛客企业服务