Submission #19536951


Source Code Expand

Copy
#include <iostream>
using namespace std;
int main(int atgc, char* argv[]){
    int m,d;
    cin >> m >> d;
    int ans=0;
    for (int i=1; i<=m; i++) {
        for (int j=1; j<=d; j++) {
            int d1 = j/10;
            int d0 = j - d1*10;
            if (d1>=2 && d0>=2 && d1*d0==i) {
                ans++;
            }
        }
    }
    cout << ans << endl;
    return 0;
}

Submission Info

Submission Time
Task A - Takahashi Calendar
User urachon
Language C++ (GCC 9.2.1)
Score 200
Code Size 405 Byte
Status AC
Exec Time 6 ms
Memory 3596 KB

Compile Error

./Main.cpp: In function ‘int main(int, char**)’:
./Main.cpp:3:14: warning: unused parameter ‘atgc’ [-Wunused-parameter]
    3 | int main(int atgc, char* argv[]){
      |          ~~~~^~~~
./Main.cpp:3:26: warning: unused parameter ‘argv’ [-Wunused-parameter]
    3 | int main(int atgc, char* argv[]){
      |                    ~~~~~~^~~~~~

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 6 ms 3540 KB
sample_02 AC 2 ms 3536 KB
sample_03 AC 2 ms 3552 KB
testcase_01 AC 2 ms 3392 KB
testcase_02 AC 4 ms 3416 KB
testcase_03 AC 3 ms 3496 KB
testcase_04 AC 2 ms 3528 KB
testcase_05 AC 2 ms 3556 KB
testcase_06 AC 2 ms 3528 KB
testcase_07 AC 2 ms 3528 KB
testcase_08 AC 2 ms 3524 KB
testcase_09 AC 2 ms 3596 KB
testcase_10 AC 2 ms 3588 KB