https://youtu.be/HkDcN_6pGKI
#include <iostream>
using namespace std; int main() { int N, score; while(cin>>N) { if(N >= 40) cout << 100; else if(N >= 20) cout << 60 + N; else if(N > 10) cout << 40 + 2*N; else cout << 6*N; cout << endl; } return 0; }