結果

問題 No.632 穴埋め門松列
ユーザー motimoti
提出日時 2018-05-20 08:21:59
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 1,000 ms
コード長 207 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 5,060 KB
最終ジャッジ日時 2023-09-10 23:53:42
合計ジャッジ時間 741 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,016 KB
testcase_01 AC 6 ms
4,844 KB
testcase_02 AC 5 ms
5,060 KB
testcase_03 AC 5 ms
4,840 KB
testcase_04 AC 5 ms
4,820 KB
testcase_05 AC 4 ms
5,036 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/env perl

use strict;
use warnings;

my @cs = split / /,<>;
chomp$cs[2];
if ($cs[0] eq '?' || $cs[2] eq '?'){
  if ($cs[1] eq '2') {
    print 4;
  } else {
    print 1;
  }
}
else {
  print 14
}
0