Submission #305577
Source Code Expand
#include <bits/stdc++.h> #ifdef LOCAL #include "dump.hpp" #else #define dump(...) #endif using namespace std; #define REP(i, a, b) for(int i = (a); i < int(b); ++i) #define rep(i, n) REP(i, 0, n) #define ALL(x) begin(x), end(x) template<class T> inline void chmax(T &a, const T &b) { if(a < b) a = b; } template<class T> inline void chmin(T &a, const T &b) { if(a > b) a = b; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; int x = 1; for(int i = 0; i < n; ++i) { x *= 10; } printf("%d\n", x - 1); for(int i = 0; i < x; ++i) { printf("%0*d\n", n, i); } return EXIT_SUCCESS; }
Submission Info
Submission Time | |
---|---|
Task | A - Lock |
User | nisshy |
Language | C++11 (GCC 4.8.1) |
Score | 0 |
Code Size | 667 Byte |
Status | WA |
Exec Time | 76 ms |
Memory | 924 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_sample_01.txt, subtask0_sample_02.txt |
All | subtask0_sample_01.txt, subtask0_sample_02.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
subtask0_sample_01.txt | AC | 24 ms | 924 KB |
subtask0_sample_02.txt | WA | 22 ms | 800 KB |
subtask1_01.txt | WA | 24 ms | 924 KB |
subtask1_02.txt | WA | 26 ms | 800 KB |
subtask1_03.txt | WA | 76 ms | 924 KB |