Submission #757804
Source Code Expand
#include <iostream>
#include <vector>
#include <cstring>
using namespace std;
int main(void){
int N;
scanf("%d",&N);
string s = "1";
for(int i = 0; i < N-1; i++){
s += "0";
}
s += "7";
cout << s << endl;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 数え上げ |
| User | tetraPro |
| Language | C++14 (GCC 5.4.1) |
| Score | 100 |
| Code Size | 257 Byte |
| Status | AC |
| Exec Time | 4 ms |
| Memory | 256 KiB |
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:11: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 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 0_000.txt, 0_001.txt, 0_002.txt |
| All | 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 0_000.txt | AC | 4 ms | 256 KiB |
| 0_001.txt | AC | 4 ms | 256 KiB |
| 0_002.txt | AC | 4 ms | 256 KiB |
| 1_003.txt | AC | 4 ms | 256 KiB |
| 1_004.txt | AC | 4 ms | 256 KiB |
| 1_005.txt | AC | 4 ms | 256 KiB |
| 1_006.txt | AC | 4 ms | 256 KiB |