Skip to content
EROUI Abdelaziz edited this page Jan 15, 2021 · 1 revision

egor copy

egor copy or egor copy allow you to copy the source code of your task solution. Executing this command in your egor task directory will copy the source of your solution to the clipboard and it's all setup and ready to be submitted.

Usage example

$ egor cp 
Task copied to clipboard successfull
pbpaste

import java.io.*;
import java.util.*;

/**
 * Made by egor https://github.com/chermehdi/egor.
 *
 * @author Azuz
 *
 */
public class Main {
  void solve(Scanner in, PrintWriter out) {
    int n = in.nextInt();
    int sum = 0;
    for (int i = 0; i <n; ++i) {
      sum += in.nextInt();
    }
    out.println(sum);
  }
  public static void main(String[] args) {
    try (Scanner in = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out)) {
      new Main().solve(in, out);
    }
  }
}
Clone this wiki locally