Submission #751893
Source Code Expand
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int num;
string base = "1";
cin >> num;
if(num ==0){
cout <<"8"<<endl;
return 0;
}
for(int i =1 ;i<num;i++){
base = base + "0";
}
cout << (base+"7");
cout <<endl;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 数え上げ |
| User | kyokote |
| Language | C++14 (GCC 5.4.1) |
| Score | 100 |
| Code Size | 328 Byte |
| Status | AC |
| Exec Time | 4 ms |
| Memory | 256 KiB |
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 |