Submission #4020478
Source Code Expand
#include <bits/stdc++.h> using namespace std; string a[1005]; int n; string strng(int x){ int t; string y=""; while(x>0){ t=x%10; y=y+char(t+48); x/=10; } reverse(y.begin(),y.end()); return y; } int main() { n=1000; for(int i=1;i<=n;++i) a[i]=strng(i); sort(a+1,a+n+1); for(int i=1;i<=n;++i) cout<<a[i]<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 天下一序数 |
User | luogu_bot1 |
Language | C++ (GCC 5.4.1) |
Score | 20 |
Code Size | 339 Byte |
Status | AC |
Exec Time | 3 ms |
Memory | 256 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 20 / 20 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | output-only.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
output-only.txt | AC | 3 ms | 256 KB |