CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include <simplecpp>
main_program{
    int n;
    int count = 1;
    float least;
    float f;
    cin >> n;
    cin >> f;
    least = f;
    for (int i = 1; i < n; i++){
        cin >> f;
        if (f < least){
            least = f;
            count++;
        }
    }
    cout << count << endl;
}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: A
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>
main_program{
        int n;
        cin>> n;
        float m;
        int count=1;
        int prevm;
        for(int i=1;i<=n;i++){
                cin>>m;
                if(m<prevm){count++;}
                prevm=m;

        }
cout<<count<<endl;
}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: A
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>
main_program{
        int n;
        cin>>n;
        float t1;
        cin>>t1;
        float t;
        int i = 1;
        int count = 1;
        repeat(n-1){
                cin>>t;
                if(t1>t){
                        i++;
                        count = i;
                }
                else{
                        count = i;
                }
        }
        cout<<count<<endl;
}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: B
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>
main_program{

        int n; float curr_time ;
        float minsofar;
        int counter=1 ;
        cin >> n;
        cin >> curr_time ; minsofar = curr_time;

     for(int i=1; i<n; i++){

     cin >> curr_time;
     if (curr_time < minsofar) {minsofar = curr_time;counter++;}

     }
        cout << counter << endl;
}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: A
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>

main_program{
        int n, record;
        record = 0;
        float num, previous;
        previous = 0.0;
        cin >> n;
        cin >> num;
        record++;
        previous = num;
        repeat(n-1){
                cin >> num;
                if(num < previous){
                        record++;
                        previous = num;
                }
        }
        cout << record << endl;


}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: A
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>
main_program {
    int n;
    int count=0;
    cin>>n;
    double t ;
    cin>>t;
    double k;
    repeat(n-1){
    
    cin>>k;
    }
    if(k<=t){
    
    count++;
    }
    cout<<count<<endl;
}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: C
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>

main_program{
 int n,count = 0;
 float record=0,time;
 cin >> n;
 for(int i=1;i<=n;i++)
 {
  cin >> time;
  if(time < record || i==1 )
  {
   record=time;
   count++;
  }
 }
 cout << count << endl;

}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: A
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>
main_program
{
        int n=0,i=0, recBreak = 1;
        double time=0.0,a=0.0;

        cin >> n;
        while(i<n)
        {
                cin >> time;
                if(time < a)
                {
                        recBreak++;
                }
                a = time;
                i++;
        }
        cout << recBreak;
}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: A
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include <simplecpp>
main_program{
        int n;
        cin>>n;

        float runtime;cin>>prevruntime;
        
        float prevruntime;
        int count=1;
repeat(n){
                cin>>runtime;

                if(runtime<prevruntime){
                        count++;}
                else continue;
}
        cout<<count<<endl;
}

~                                                                            
~                                                                            
~

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: B
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	float a,b=16,count=0;
	int c;
	repeat(n){
		cin>>a;
		count++;
		if(a<b){
			b=a;
			cin>>a;
	                c=count;}}
         cout<<c;}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: B
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>
main_program
{ int n;
  float n1,n2;
  int k=1;
  cin>>n>>n1;
  int i;
  for(i=1;i<n;i++)
  { cin>>n2;
    if(n2<n1)
    { k++;
      n1=n2;
      }
      
      
      }
      cout<<k;
      
      }

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: A
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>
main_program{
        int n;
        cin >> n;
        float rec,time;
        cin >> time;
        rec=time;
        int c=1;
        for(int i=1; i<n; i++){
                cin >> time;
                if (time<rec){
                        c++;
                        rec=time;
                }
        }
        cout << c;
}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: A
Problem: In the 100-meter Olympic finals, a runner's performance is measured by their finish time in seconds. Over the years, multiple gold medalists have recorded their times. A performance is considered a record-breaking run if its finish time is strictly less than all previous recorded times.

You are given the times recorded by the gold medalists in chronological order. Your task is to determine how many record-breaking runs occurred. The first recorded time is always considered a record-breaking run.

Input Format

The first line contains an integer n, the number of recorded times.

The second line contains n real numbers (floating-point values) separated by spaces, representing the times recorded by the gold medalists in chronological order.

Output Format

Output a single integer representing the total number of record-breaking runs.

Assumptions on Input

1. 1 <= n <= 100000  
2. Each recorded time is a positive real number between 9.0 and 15.0.  
3. Times are given in chronological order.  
4. The first time is always counted as a record-breaking run.

Note:

- Do not print any extra messages or prompts.
- Use cout only to print the final output.
- Do not hard-code results.
- The solution must use proper logic to determine record-breaking runs.

Student submission:
#include<simplecpp>
main_program{
    int n,rt=0;
    float a1,a2=16;
    cin>>n;
    for (int i=1;i<=n;i++){
        cin>>a1;
        if (a1<a2){rt+=1;}
        a2=a1;
    }
    cout<<rt<<endl;
}

Grading criterion: Counter for record breaking runs
Rating A: Correctly increments the variable that maintains the counter for record breaking runs and prints it

Rating B: Some issue. 

Rating C: Major issue. 

Rating D: 0
Assigned grade: A