Submission #11260427
Source Code Expand
use v5.18; # strict say state use warnings; use List::Util qw(reduce first max min sum0); chomp (my @s = split //, <STDIN>); my $ans = 0; for my $i (1..$#s) { for my $j (1..$#s) { next if $i==$j; if ($i<$j) { $ans++; $ans++ if $s[$i-1] eq 'D'; } else { $ans++; $ans++ if $s[$i-1] eq 'U'; } } } say $ans;
Submission Info
Submission Time | |
---|---|
Task | B - Evilator |
User | superrino1 |
Language | Perl (v5.18.2) |
Score | 0 |
Code Size | 366 Byte |
Status | TLE |
Exec Time | 2104 ms |
Memory | 16256 KB |
Compile Error
./Main.pl syntax OK
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 400 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | TLE | 2104 ms | 14208 KB |
02.txt | TLE | 2103 ms | 16256 KB |
03.txt | TLE | 2104 ms | 14208 KB |
04.txt | TLE | 2104 ms | 14208 KB |
05.txt | TLE | 2104 ms | 14208 KB |
06.txt | TLE | 2104 ms | 16256 KB |
07.txt | TLE | 2104 ms | 14208 KB |
08.txt | TLE | 2104 ms | 14208 KB |
09.txt | AC | 5 ms | 768 KB |
10.txt | AC | 5 ms | 768 KB |
s1.txt | AC | 5 ms | 768 KB |
s2.txt | AC | 5 ms | 768 KB |