Task: | Linear Gimmick |
Sender: | Hansuzu |
Submission time: | 2016-08-04 17:54:42 +0300 |
Language: | C++ |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.06 s | details |
#2 | ACCEPTED | 0.06 s | details |
#3 | ACCEPTED | 0.05 s | details |
#4 | WRONG ANSWER | 0.05 s | details |
#5 | ACCEPTED | 0.05 s | details |
#6 | ACCEPTED | 0.06 s | details |
#7 | ACCEPTED | 0.05 s | details |
#8 | WRONG ANSWER | 0.06 s | details |
#9 | WRONG ANSWER | 0.06 s | details |
#10 | WRONG ANSWER | 0.05 s | details |
#11 | WRONG ANSWER | 0.06 s | details |
#12 | ACCEPTED | 0.05 s | details |
#13 | ACCEPTED | 0.06 s | details |
#14 | ACCEPTED | 0.05 s | details |
#15 | WRONG ANSWER | 0.06 s | details |
#16 | ACCEPTED | 0.06 s | details |
#17 | ACCEPTED | 0.06 s | details |
#18 | WRONG ANSWER | 0.05 s | details |
#19 | WRONG ANSWER | 0.06 s | details |
#20 | WRONG ANSWER | 0.06 s | details |
#21 | WRONG ANSWER | 0.06 s | details |
#22 | WRONG ANSWER | 0.06 s | details |
#23 | WRONG ANSWER | 0.06 s | details |
#24 | WRONG ANSWER | 0.06 s | details |
#25 | WRONG ANSWER | 0.05 s | details |
#26 | WRONG ANSWER | 0.06 s | details |
#27 | WRONG ANSWER | 0.06 s | details |
#28 | ACCEPTED | 0.06 s | details |
#29 | ACCEPTED | 0.06 s | details |
Code
#include <iostream> #include <vector> using namespace std; int n; string s; int main(){ cin >> n >> s; for (int i=0; i<n; ++i) if (s[i]=='>' && s[n-i-1]=='<'){ cout << (n-i) << "\n"; break;} }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
5 >>><> |
correct output |
---|
5 |
user output |
---|
4 |
Test 2
Verdict: ACCEPTED
input |
---|
6 ><><>< |
correct output |
---|
6 |
user output |
---|
6 |
Test 3
Verdict: ACCEPTED
input |
---|
8 >>>><><< |
correct output |
---|
8 |
user output |
---|
8 |
Test 4
Verdict: WRONG ANSWER
input |
---|
8 >>>>><>> |
correct output |
---|
8 |
user output |
---|
6 |
Test 5
Verdict: ACCEPTED
input |
---|
10 ><<><<<<<< |
correct output |
---|
10 |
user output |
---|
10 |
Test 6
Verdict: ACCEPTED
input |
---|
7 >><><<< |
correct output |
---|
7 |
user output |
---|
7 |
Test 7
Verdict: ACCEPTED
input |
---|
526 ><><<<>><><><<<<<>>>>>><><<>><... |
correct output |
---|
526 |
user output |
---|
526 |
Test 8
Verdict: WRONG ANSWER
input |
---|
920 <<<<><>>><><><<<<><<<<>>><<>>>... |
correct output |
---|
917 |
user output |
---|
912 |
Test 9
Verdict: WRONG ANSWER
input |
---|
528 <>>>>>><><<>>>>>>>>>>><>><<<<>... |
correct output |
---|
528 |
user output |
---|
526 |
Test 10
Verdict: WRONG ANSWER
input |
---|
837 <<<>><<<<><>><<<<<<>><<<<<<><<... |
correct output |
---|
837 |
user output |
---|
818 |
Test 11
Verdict: WRONG ANSWER
input |
---|
761 >>>><><>>><<><>>>><<<>>>>>>>><... |
correct output |
---|
761 |
user output |
---|
760 |
Test 12
Verdict: ACCEPTED
input |
---|
53592 <><<<<>>><>><<><><><<>><<<<<><... |
correct output |
---|
53591 |
user output |
---|
53591 |
Test 13
Verdict: ACCEPTED
input |
---|
52256 >>><<><>><><<<>><<><>><>>><<>>... |
correct output |
---|
52256 |
user output |
---|
52256 |
Test 14
Verdict: ACCEPTED
input |
---|
99234 >><>><<<<><<><<<<><><><><><<<>... |
correct output |
---|
99234 |
user output |
---|
99234 |
Test 15
Verdict: WRONG ANSWER
input |
---|
90893 <<><><><<<<><>><<<<>>>><><><><... |
correct output |
---|
90893 |
user output |
---|
90891 |
Test 16
Verdict: ACCEPTED
input |
---|
94064 >><><<>>><<>>>>>><>><<<><>><>>... |
correct output |
---|
94064 |
user output |
---|
94064 |
Test 17
Verdict: ACCEPTED
input |
---|
5 >><<< |
correct output |
---|
5 |
user output |
---|
5 |
Test 18
Verdict: WRONG ANSWER
input |
---|
85155 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
84901 |
user output |
---|
84255 |
Test 19
Verdict: WRONG ANSWER
input |
---|
97153 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
96645 |
user output |
---|
96296 |
Test 20
Verdict: WRONG ANSWER
input |
---|
99451 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
99140 |
user output |
---|
98981 |
Test 21
Verdict: WRONG ANSWER
input |
---|
56288 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
56150 |
user output |
---|
56023 |
Test 22
Verdict: WRONG ANSWER
input |
---|
93160 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
92348 |
user output |
---|
92289 |
Test 23
Verdict: WRONG ANSWER
input |
---|
69172 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
53872 |
user output |
---|
50429 |
Test 24
Verdict: WRONG ANSWER
input |
---|
94056 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
89998 |
user output |
---|
74884 |
Test 25
Verdict: WRONG ANSWER
input |
---|
71927 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
58103 |
user output |
---|
41316 |
Test 26
Verdict: WRONG ANSWER
input |
---|
72348 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
70369 |
user output |
---|
13579 |
Test 27
Verdict: WRONG ANSWER
input |
---|
97095 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<... |
correct output |
---|
93334 |
user output |
---|
85368 |
Test 28
Verdict: ACCEPTED
input |
---|
6 ><<><< |
correct output |
---|
6 |
user output |
---|
6 |
Test 29
Verdict: ACCEPTED
input |
---|
7 <<><<>> |
correct output |
---|
5 |
user output |
---|
5 |