/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 284.0 KiB
#2 Accepted 0ms 284.0 KiB

Code

#include <stdio.h>

int main() {
    int y;

    printf(" ");
    scanf("%d", &y);

    // Checking if the entered number is non-negative
    if (y < 0) {
        printf("Error\n");
        return 1;  // Exiting with an error code
    }

    for (int i = 0; i < y; i++) {
        printf("I love programming\n");
    }

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1018 Show your dedication
Contest
Brain booster - 1
Language
C99 (GCC 13.2.0)
Submit At
2023-12-31 15:47:36
Judged At
2024-10-03 14:05:03
Judged By
Score
100
Total Time
0ms
Peak Memory
284.0 KiB