Skip to content

Instantly share code, notes, and snippets.

@Aestheticsuraj234
Created July 28, 2025 04:05
Show Gist options
  • Select an option

  • Save Aestheticsuraj234/e352263aa2b0dbe0a218164042636d49 to your computer and use it in GitHub Desktop.

Select an option

Save Aestheticsuraj234/e352263aa2b0dbe0a218164042636d49 to your computer and use it in GitHub Desktop.
  1. Admin Login Details email:[email protected] password:@1234567890Ss

  2. Problem Creation Details

{
    "title": "Addition of Two Numbers",
    "description": "Write a program that takes two integers as input and returns their sum.",
    "difficulty": "easy",
    "tags": "array",
    "visibleTestCases": [
        {
            "input": "2 3",
            "output": "5",
            "explanation": "2 + 3 equals 5"
        },
        {
            "input": "-1 5",
            "output": "4",
            "explanation": "-1 + 5 equals 4"
        }
    ],
    "hiddenTestCases": [
        {
            "input": "10 20",
            "output": "30"
        },
        {
            "input": "100 250",
            "output": "350"
        }
    ],
    "startCode": [
        {
            "language": "C++",
            "initialCode": "#include <iostream>\nusing namespace std;\n\nint main() {\n    int a, b;\n    // Read input here\n    cout << a + b;\n    return 0;\n}"
        },
        {
            "language": "Java",
            "initialCode": "import java.util.Scanner;\n\npublic class Main {\n    public static void main(String[] args) {\n        // Read input here\n    }\n}"
        },
        {
            "language": "JavaScript",
            "initialCode": "const readline = require('readline');\n\n// Complete input handling here"
        }
    ],
    "referenceSolution": [
        {
            "language": "C++",
            "completeCode": "#include <iostream>\nusing namespace std;\n\nint main() {\n    int a, b;\n    cin >> a >> b;\n    cout << a + b;\n    return 0;\n}"
        },
        {
            "language": "Java",
            "completeCode": "import java.util.Scanner;\n\npublic class Main {\n    public static void main(String[] args) {\n        Scanner sc = new Scanner(System.in);\n        int a = sc.nextInt();\n        int b = sc.nextInt();\n        System.out.println(a + b);\n    }\n}"
        },
        {
            "language": "JavaScript",
            "completeCode": "const input = require('fs').readFileSync(0, 'utf-8').trim();\nconst [a, b] = input.split(' ').map(Number);\nconsole.log(a + b);"
        }
    ]
}

this is my problem details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment