Submission #26166192
Source Code Expand
K = int(input())
A, B = map(str, input().split())
if K == 10:
print(int(A)*int(B))
else:
print(int(A,K)*int(B,K))
Submission Info
| Submission Time | |
|---|---|
| Task | B - Base K |
| User | hanaseleb |
| Language | Python (3.8.2) |
| Score | 200 |
| Code Size | 128 Byte |
| Status | AC |
| Exec Time | 29 ms |
| Memory | 9164 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 29 ms | 9032 KiB |
| 001.txt | AC | 20 ms | 9104 KiB |
| 002.txt | AC | 22 ms | 8876 KiB |
| 003.txt | AC | 24 ms | 9164 KiB |
| 004.txt | AC | 18 ms | 9076 KiB |
| 005.txt | AC | 21 ms | 8916 KiB |
| 006.txt | AC | 25 ms | 8880 KiB |
| 007.txt | AC | 25 ms | 9160 KiB |
| example0.txt | AC | 21 ms | 9100 KiB |
| example1.txt | AC | 19 ms | 9028 KiB |