Submission #47255574
Source Code Expand
#include<stdio.h>
int main() {
long long int B;
scanf("%lld", &B);
for(long long int i = 1; i <= 1e18; i++) {
if((i * log(i)) == B) {
printf("%lld\n", i);
}
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - A^A |
| User | InFi4D_0 |
| Language | C (gcc 12.2.0) |
| Score | 0 |
| Code Size | 232 Byte |
| Status | TLE |
| Exec Time | 2210 ms |
| Memory | 2016 KiB |
Compile Error
Main.c: In function ‘main’:
Main.c:7:17: warning: implicit declaration of function ‘log’ [-Wimplicit-function-declaration]
7 | if((i * log(i)) == B) {
| ^~~
Main.c:2:1: note: include ‘<math.h>’ or provide a declaration of ‘log’
1 | #include<stdio.h>
+++ |+#include <math.h>
2 |
Main.c:7:17: warning: incompatible implicit declaration of built-in function ‘log’ [-Wbuiltin-declaration-mismatch]
7 | if((i * log(i)) == B) {
| ^~~
Main.c:7:17: note: include ‘<math.h>’ or provide a declaration of ‘log’
Main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lld", &B);
| ^~~~~~~~~~~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 02_hack_1_00.txt, 02_hack_1_01.txt, 03_hack_2_00.txt, 03_hack_2_01.txt, 03_hack_2_02.txt, 03_hack_2_03.txt, 04_corner_00.txt, 04_corner_01.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | TLE | 2207 ms | 1972 KiB |
| 00_sample_01.txt | TLE | 2207 ms | 1940 KiB |
| 00_sample_02.txt | TLE | 2207 ms | 1992 KiB |
| 01_random_00.txt | TLE | 2207 ms | 1996 KiB |
| 01_random_01.txt | TLE | 2207 ms | 1820 KiB |
| 01_random_02.txt | TLE | 2207 ms | 1980 KiB |
| 01_random_03.txt | TLE | 2207 ms | 1992 KiB |
| 01_random_04.txt | TLE | 2207 ms | 1972 KiB |
| 01_random_05.txt | TLE | 2207 ms | 1824 KiB |
| 01_random_06.txt | TLE | 2207 ms | 1816 KiB |
| 01_random_07.txt | TLE | 2207 ms | 1968 KiB |
| 01_random_08.txt | TLE | 2210 ms | 1972 KiB |
| 01_random_09.txt | TLE | 2207 ms | 1996 KiB |
| 02_hack_1_00.txt | TLE | 2207 ms | 1948 KiB |
| 02_hack_1_01.txt | TLE | 2207 ms | 1972 KiB |
| 03_hack_2_00.txt | TLE | 2207 ms | 1824 KiB |
| 03_hack_2_01.txt | TLE | 2207 ms | 2016 KiB |
| 03_hack_2_02.txt | TLE | 2207 ms | 1984 KiB |
| 03_hack_2_03.txt | TLE | 2207 ms | 2000 KiB |
| 04_corner_00.txt | TLE | 2207 ms | 1940 KiB |
| 04_corner_01.txt | TLE | 2207 ms | 1964 KiB |