Submission #4126

#TimeUsernameProblemLanguageResultExecution timeMemory
4126pichulia그릇 (KOI13_bowl)C++98
16 / 16
0 ms1088 KiB
#include<stdio.h> char p=3; char x; int h; int main() { while(scanf("%c",&x)>0) { if(x=='(' || x==')') { if(x == p) h+=5; else h+=10; p = x; } } printf("%d",h); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...