Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
101522 | 梁乃元 | 换零钱2 | C++ | 运行超时 | 80 | 1988 MS | 240 KB | 360 | 2023-09-09 10:08:35 |
#include <iostream> #include <cstdio> using namespace std ; int a [21] ; int main ( ) { int n = 0 ; int t ; cin >> t ; t -= 16 ; if ( t == 0 ) { cout << 1 << endl ; return 0 ; } for ( int i = 0 ; i * 10 <= t ; i ++ ) { for ( int j = 0 ; j * 5 + i * 10 <= t ; j ++ ) { n ++ ; } } cout << n << endl ; return 0 ; }