Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOJ JudgeServer 0.2.1 Support #615

Closed
8 tasks done
ZsgsDesign opened this issue Aug 14, 2021 · 0 comments
Closed
8 tasks done

NOJ JudgeServer 0.2.1 Support #615

ZsgsDesign opened this issue Aug 14, 2021 · 0 comments
Assignees
Labels
new feature This is a new feature NOJ would support in the future priority 3 (medium) This request need no exter attention

Comments

@ZsgsDesign
Copy link
Owner

ZsgsDesign commented Aug 14, 2021

  • Add Golang language support (require NOJ JudgeServer v0.1.4 or higher)
  • Add C# language support (require NOJ JudgeServer v0.1.4 or higher)
  • Add Rust language support (require NOJ JudgeServer v0.2.0 or higher)
  • Add Ruby language support (require NOJ JudgeServer v0.2.0 or higher)
  • Add Haskell language support (require NOJ JudgeServer v0.2.0 or higher)
  • Add Free Pascal language support (require NOJ JudgeServer v0.2.0 or higher)
  • Add Text special language support (require NOJ JudgeServer v0.2.0 or higher)
  • Add Free Basic language support (require NOJ JudgeServer v0.2.1 or higher)

The Golang version of A+B Problem would look just like:

package main
import "fmt"
func main() {
    a := 0
    b := 0
    fmt.Scanf("%d %d", &a, &b)
    fmt.Printf("%d", a + b)
}

The C# version of A+B Problem would look just like:

using System;
using System.Linq;

class Program {
    public static void Main(string[] args) {
        Console.WriteLine(Console.ReadLine().Split().Select(int.Parse).Sum());
    }
}

The Rust version of A+B Problem would look just like:

use std::io;
 
fn main() {
    let mut line = String::new();
    io::stdin().read_line(&mut line).expect("stdin");
 
    let sum: i32 = line.split_whitespace()
                       .map(|x| x.parse::<i32>().expect("integer"))
                       .sum(); 
    println!("{}", sum);
}

The Ruby version of A+B Problem would look just like:

a, b = gets.split.map(&:to_i)
puts(a + b)

The Haskell version of A+B Problem would look just like:

main = print . sum . map read . words =<< getLine

The Free Pascal version of A+B Problem would look just like:

var a, b:longint;
begin
    readln(a, b);
    writeln(a + b);
end.

The Free Basic version of A+B Problem would look just like:

Dim a As Integer
Dim b As Integer

Open Cons For Input As #1
Input #1, a, b
Print Str(a+b)

The Text version of A+B Problem doesn't exist :-)

@ZsgsDesign ZsgsDesign added new feature This is a new feature NOJ would support in the future priority 3 (medium) This request need no exter attention labels Aug 14, 2021
@ZsgsDesign ZsgsDesign added this to the 0.5.0 Pygocentrus milestone Aug 14, 2021
@ZsgsDesign ZsgsDesign self-assigned this Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature This is a new feature NOJ would support in the future priority 3 (medium) This request need no exter attention
Projects
None yet
Development

No branches or pull requests

1 participant