Submission #44879271
Source Code Expand
use proconio::input;
fn main() {
input! {
x: i64,
};
for a in -1000_i64..=1000 {
for b in -1000_i64..=1000 {
if a.pow(5) - b.pow(5) == x {
println!("{} {}", a, b);
return;
}
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | D - I hate Factorization |
| User | bouzuya |
| Language | Rust (1.42.0) |
| Score | 400 |
| Code Size | 277 Byte |
| Status | AC |
| Exec Time | 14 ms |
| Memory | 2140 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 400 / 400 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | Sample_01.txt, Sample_02.txt |
| All | Sample_01.txt, Sample_02.txt, bmin_01.txt, rand_01.txt, rand_02.txt, rand_03.txt, rand_04.txt, rand_05.txt, small_01.txt, small_02.txt, small_03.txt, small_04.txt, small_05.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| Sample_01.txt | AC | 10 ms | 2060 KiB |
| Sample_02.txt | AC | 8 ms | 2140 KiB |
| bmin_01.txt | AC | 14 ms | 2096 KiB |
| rand_01.txt | AC | 10 ms | 2100 KiB |
| rand_02.txt | AC | 7 ms | 2112 KiB |
| rand_03.txt | AC | 10 ms | 2060 KiB |
| rand_04.txt | AC | 9 ms | 2028 KiB |
| rand_05.txt | AC | 9 ms | 2024 KiB |
| small_01.txt | AC | 11 ms | 2088 KiB |
| small_02.txt | AC | 11 ms | 2096 KiB |
| small_03.txt | AC | 8 ms | 1980 KiB |
| small_04.txt | AC | 8 ms | 2076 KiB |
| small_05.txt | AC | 9 ms | 1976 KiB |