Submission #19539224


Source Code Expand

Copy
// #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
 
using namespace std;
 
#define ll long long

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	int m, d, ans = 0;
	cin >> m >> d;
	for (int i = 1; i <= m; ++i) {
		for (int d1 = 2; d1 * 10 + 2 <= d && d1 < 10; ++d1) {
			for (int d2 = 2; d1 * 10 + d2 <= d && d2 < 10; ++d2) {
				if (d1 * d2 == i) {
					ans++;
				}
			}
		}
	}
	cout << ans;
}

Submission Info

Submission Time
Task A - Takahashi Calendar
User Cervidae
Language C++ (GCC 9.2.1)
Score 200
Code Size 452 Byte
Status AC
Exec Time 11 ms
Memory 3532 KB

Judge Result

Set Name All Sample
Score / Max Score 200 / 200 0 / 0
Status
AC × 13
AC × 3
Set Name Test Cases
All sample_01, sample_02, sample_03, testcase_01, testcase_02, testcase_03, testcase_04, testcase_05, testcase_06, testcase_07, testcase_08, testcase_09, testcase_10
Sample sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
sample_01 AC 11 ms 3524 KB
sample_02 AC 3 ms 3488 KB
sample_03 AC 4 ms 3520 KB
testcase_01 AC 2 ms 3484 KB
testcase_02 AC 3 ms 3492 KB
testcase_03 AC 2 ms 3488 KB
testcase_04 AC 2 ms 3512 KB
testcase_05 AC 2 ms 3456 KB
testcase_06 AC 3 ms 3484 KB
testcase_07 AC 2 ms 3464 KB
testcase_08 AC 2 ms 3484 KB
testcase_09 AC 2 ms 3480 KB
testcase_10 AC 4 ms 3532 KB