sicily 1818 成績轉換

2021-06-07 19:56:05 字數 424 閱讀 6102

試用stl 的map 容器

在儲存成績時將名字與「成績」**換為abcde後)的匹配,查詢時直接找到輸出

// problem#: 1818

// submission#: 1005080

// the source code is licensed under creative commons attribution-noncommercial-sharealike 3.0 unported license

// uri:

#include #include #include using namespace std;

int main()

for(int k = 0; k < search_num; k++)

}return 0;

}

Sicily 1818 成績轉換

time limit 5 secs,memory limit 32 mb 儲存學生姓名和成績,然後通過姓名查詢該學生的成績等級。輸入為百分制的成績,將其轉換成對應的等級,具體轉換規則如下 90 100 為 a 80 89 為 b 70 79 為 c 60 69 為 d 0 59 為 e 輸入有多組資...

2004 成績轉換

problem description 輸入乙個百分制的成績t,將其轉換成對應的等級,具體轉換規則如下 90 100為a 80 89為b 70 79為c 60 69為d 0 59為e input 輸入資料有多組,每組佔一行,由乙個整數組成。output 對於每組輸入資料,輸出一行。如果輸入資料不在0...

2004 成績轉換

problem description 輸入乙個百分制的成績t,將其轉換成對應的等級,具體轉換規則如下 90 100為a 80 89為b 70 79為c 60 69為d 0 59為e input 輸入資料有多組,每組佔一行,由乙個整數組成 output 對於每組輸入資料,輸出一行。如果輸入資料不在0...