Submission #64039806
Source Code Expand
Copy
#include<bits/stdc++.h>using namespace std;int main(){int n;cin>>n;if(n&1){for(int i=1;i<=n/2;i++){cout<<'-';}cout<<"=";for(int i=1;i<=n/2;i++){cout<<'-';}}else{for(int i=1;i<n/2;i++)
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n&1) { for(int i=1;i<=n/2;i++) { cout<<'-'; } cout<<"="; for(int i=1;i<=n/2;i++) { cout<<'-'; } } else { for(int i=1;i<n/2;i++) { cout<<'-'; } cout<<"=="; for(int i=1;i<n/2;i++) { cout<<'-'; } } }
Submission Info
Submission Time | |
---|---|
Task | A - Doors in the Center |
User | ZJGLOVE |
Language | C++ 20 (gcc 12.2) |
Score | 100 |
Code Size | 428 Byte |
Status | AC |
Exec Time | 2 ms |
Memory | 3564 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
All | random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
random_03.txt | AC | 1 ms | 3496 KB |
random_04.txt | AC | 2 ms | 3376 KB |
random_05.txt | AC | 1 ms | 3564 KB |
random_06.txt | AC | 1 ms | 3496 KB |
random_07.txt | AC | 1 ms | 3440 KB |
random_08.txt | AC | 1 ms | 3512 KB |
random_09.txt | AC | 2 ms | 3436 KB |
random_10.txt | AC | 1 ms | 3492 KB |
sample_01.txt | AC | 1 ms | 3496 KB |
sample_02.txt | AC | 1 ms | 3460 KB |