Submission #138110


Source Code Expand

my($year, $month) = split(' ',<>);

my $n = ($year-2013)*12 + $month;
my $y = 0;
my $m = 13;
while(){
	if($n - $m > 0){
		$n = $n - $m;
		$y++;
		$m++;
	}else{
		last;
	}

}
print 2013+$y." $n\n";

Submission Info

Submission Time
Task B - 13月
User tiechel
Language Perl (5.14.2)
Score 50
Code Size 213 Byte
Status TLE
Exec Time 1029 ms
Memory 1068 KiB

Compile Error

./Main.pl syntax OK

Judge Result

Set Name Small Large
Score / Max Score 50 / 50 0 / 50
Status
AC × 19
AC × 23
TLE × 12
Set Name Test Cases
Small 01-max-small, 01-random-small01, 01-random-small02, 01-random-small03, 01-random-small04, 01-random-small05, 01-random-small06, 01-random-small07, 01-random-small08, 01-random-small09, 01-random-small10, 01-random-small11, 01-random-small12, 01-random-small13, 01-random-small14, 01-random-small15, 00-sample1, 00-sample2, 00-sample3
Large 00-sample1, 00-sample2, 00-sample3, 01-max-small, 01-random-small01, 01-random-small02, 01-random-small03, 01-random-small04, 01-random-small05, 01-random-small06, 01-random-small07, 01-random-small08, 01-random-small09, 01-random-small10, 01-random-small11, 01-random-small12, 01-random-small13, 01-random-small14, 01-random-small15, 10-max-large, 11-random-large01, 11-random-large02, 11-random-large03, 11-random-large04, 11-random-large05, 11-random-large06, 11-random-large07, 11-random-large08, 11-random-large09, 11-random-large10, 11-random-large11, 11-random-large12, 11-random-large13, 11-random-large14, 11-random-large15
Case Name Status Exec Time Memory
00-sample1 AC 23 ms 1048 KiB
00-sample2 AC 23 ms 1008 KiB
00-sample3 AC 23 ms 1012 KiB
01-max-small AC 23 ms 1048 KiB
01-random-small01 AC 22 ms 924 KiB
01-random-small02 AC 22 ms 928 KiB
01-random-small03 AC 25 ms 1052 KiB
01-random-small04 AC 23 ms 1052 KiB
01-random-small05 AC 23 ms 928 KiB
01-random-small06 AC 23 ms 928 KiB
01-random-small07 AC 23 ms 988 KiB
01-random-small08 AC 22 ms 912 KiB
01-random-small09 AC 23 ms 996 KiB
01-random-small10 AC 22 ms 928 KiB
01-random-small11 AC 23 ms 932 KiB
01-random-small12 AC 23 ms 1060 KiB
01-random-small13 AC 23 ms 932 KiB
01-random-small14 AC 22 ms 932 KiB
01-random-small15 AC 23 ms 1056 KiB
10-max-large TLE 1029 ms 1060 KiB
11-random-large01 TLE 1029 ms 1008 KiB
11-random-large02 TLE 1029 ms 1056 KiB
11-random-large03 TLE 1029 ms 1068 KiB
11-random-large04 AC 188 ms 928 KiB
11-random-large05 TLE 1029 ms 1064 KiB
11-random-large06 TLE 1029 ms 1068 KiB
11-random-large07 TLE 1029 ms 1060 KiB
11-random-large08 TLE 1029 ms 1068 KiB
11-random-large09 TLE 1029 ms 1064 KiB
11-random-large10 AC 61 ms 928 KiB
11-random-large11 TLE 1029 ms 1056 KiB
11-random-large12 TLE 1029 ms 1056 KiB
11-random-large13 TLE 1029 ms 1012 KiB
11-random-large14 AC 580 ms 1056 KiB
11-random-large15 AC 371 ms 1052 KiB