143. 學號和分數

I'm a slow walker, but I never walk backwards.

Task Description
完成結構複製,使程式正常執行。
必須使用 struct實作。

Hint

main.c

1
2
3
4
5
6
7
8
9
10
11
12
13
#include<stdio.h>
 
struct Student{
    int m_id;
    int m_score;
};
 
int main(){
    struct Student x;
    / add your code /
    printf("(ID: %d, score: %d)", x.m_id, x.m_score);
    return 1;
}

Input Format
輸入ID和分數
Output Format
印出ID和分數
Sample Input

1
10 89

Sample Output

1
(ID: 10, score: 89)

Submit

Login

Testdata Set

Download Testdata