Submission #37485002
Source Code Expand
#include <stdio.h>
#include <math.h>
int main(void){
int a, b;
scanf("%d %d", &a, &b);
int ans = pow(a, b);
printf("%d\n", ans);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Power |
| User | Cebu |
| Language | C (GCC 9.2.1) |
| Score | 100 |
| Code Size | 158 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 2532 KiB |
Compile Error
./Main.c: In function ‘main’:
./Main.c:6:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d %d", &a, &b);
| ^~~~~~~~~~~~~~~~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt, example2.txt |
| All | example0.txt, example1.txt, example2.txt, hand0.txt, hand1.txt, hand2.txt, hand3.txt, hand4.txt, max0.txt, min0.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example0.txt | AC | 6 ms | 2480 KiB |
| example1.txt | AC | 1 ms | 2532 KiB |
| example2.txt | AC | 2 ms | 2124 KiB |
| hand0.txt | AC | 2 ms | 2268 KiB |
| hand1.txt | AC | 2 ms | 2120 KiB |
| hand2.txt | AC | 1 ms | 2508 KiB |
| hand3.txt | AC | 3 ms | 2532 KiB |
| hand4.txt | AC | 2 ms | 2456 KiB |
| max0.txt | AC | 1 ms | 2388 KiB |
| min0.txt | AC | 3 ms | 2240 KiB |