結果
| 問題 |
No.80 四角形を描こう
|
| コンテスト | |
| ユーザー |
togaerror
|
| 提出日時 | 2015-06-28 13:24:22 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 7 ms / 5,000 ms |
| コード長 | 179 bytes |
| コンパイル時間 | 351 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-08 04:04:41 |
| 合計ジャッジ時間 | 777 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use strict;
use warnings;
my $d = <>;
$d = int $d/2;
my $res = 0;
for(my $i = 1; $i <$d; $i++) {
if($res < $i * ($d - $i)) {
$res = $i * ($d - $i);
}
}
print "$res\n";
exit;
togaerror