結果
| 問題 | No.131 マンハッタン距離 | 
| コンテスト | |
| ユーザー |  togaerror | 
| 提出日時 | 2015-03-18 01:19:35 | 
| 言語 | Perl (5.40.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 256 bytes | 
| コンパイル時間 | 228 ms | 
| コンパイル使用メモリ | 6,940 KB | 
| 実行使用メモリ | 12,576 KB | 
| 最終ジャッジ日時 | 2024-06-28 23:08:18 | 
| 合計ジャッジ時間 | 6,773 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | TLE * 1 -- * 23 | 
コンパイルメッセージ
Main.pl syntax OK
ソースコード
#!/usr/bin/perl
use strict;
use warnings;
my ($x, $y, $d) = split / /, <>;
my $count = 0;
if($y < $x) {
	($x, $y) = ($y, $x);
}
for(my $i = 0; $i <= $x; $i++) {
	if($d <= $i + $y) {
		$count++;
	}
	if($i == $d) {
		last;
	}
}
print "$count\n";
exit;
            
            
            
        