Submission #3272207
Source Code Expand
#include<bits/stdc++.h> using namespace std; int main() { int n,i,j; scanf("%d",&n); for(i=1;i<=n;++i) { int t[99],tn=0; for(j=i;j;)j-=t[tn++]=min(j,9); while(tn--)printf("%d",t[tn]);puts(""); } }
Submission Info
Submission Time | |
---|---|
Task | D - Snuke Numbers |
User | ditoly |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 219 Byte |
Status | WA |
Exec Time | 4 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:6:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 500 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample.txt |
All | sample.txt, 1.txt, sample.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | WA | 4 ms | 256 KB |
sample.txt | AC | 1 ms | 256 KB |