Submission #2003306


Source Code Expand

Copy
#include <stdio.h>
#include <stdlib.h>
int main()
{
    int a,b,x,i,flag=1;
    scanf("%d %d",&a,&b);
    if(b==100)
        x=a*1000+b;
    else if(b>=10)
        x=a*100+b;
    else
        x=a*10+b;
    for(i=1;i<=100;i++)
    {
        if(i*i==x)
            {printf("Yes");
        flag=0;
        break;}
    }
    if(flag==1)
        printf("No");
    return 0;
}

Submission Info

Submission Time
Task B - 1 21
User hnust_wanglicj
Language C (GCC 5.4.1)
Score 0
Code Size 394 Byte
Status
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:6:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d",&a,&b);
     ^

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt, 0_002.txt
All 0 / 200 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt
Case Name Status Exec Time Memory
0_000.txt 1 ms 128 KB
0_001.txt 0 ms 128 KB
0_002.txt 0 ms 128 KB
1_003.txt 0 ms 128 KB
1_004.txt 0 ms 128 KB
1_005.txt 0 ms 128 KB
1_006.txt 0 ms 128 KB
1_007.txt 0 ms 128 KB
1_008.txt 0 ms 128 KB