Submission #61233522
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int N = 1019;
char S[5005];
int main() {
int x = 1;
for(int i = 0; i < N - 1; i++) {
x *= 10;
S[i] = x / N + '0';
x %= N;
}
printf("%s\n%s%s\n", S, S, S);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Multiples in the String |
| User | tour1st |
| Language | C++ 20 (gcc 12.2) |
| Score | 600 |
| Code Size | 273 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3508 KiB |
Judge Result
| Set Name | All | ||
|---|---|---|---|
| Score / Max Score | 600 / 600 | ||
| Status |
|
| Set Name | Test Cases |
|---|---|
| All | 01_testcase_00.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01_testcase_00.txt | AC | 1 ms | 3508 KiB |