Submission #2858673
Source Code Expand
#include <iostream> #include<stdio.h> #include<string.h> using namespace std; char a[100000]; int main() { gets(a); int t=strlen(a); int n=0; for(int i=0;i<t;i++) { if(a[i]=='+') n++; if(a[i]=='-') n--; } cout<<n<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Eating Symbols Easy |
User | vjudge4 |
Language | Bash (GNU bash v4.3.11) |
Score | 0 |
Code Size | 260 Byte |
Status | RE |
Exec Time | 3 ms |
Memory | 576 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | RE | 3 ms | 572 KB |
2.txt | RE | 3 ms | 576 KB |
3.txt | RE | 3 ms | 576 KB |
4.txt | RE | 3 ms | 576 KB |
5.txt | RE | 3 ms | 572 KB |
sample1.txt | RE | 3 ms | 572 KB |
sample2.txt | RE | 3 ms | 568 KB |
sample3.txt | RE | 3 ms | 568 KB |