結果

問題 No.481 1から10
ユーザー shiCanoko_oshiCanoko_o
提出日時 2019-05-24 15:25:12
言語 Perl
(5.38.2)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 5,424 KB
実行使用メモリ 5,428 KB
最終ジャッジ日時 2023-10-17 11:54:44
合計ジャッジ時間 827 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

my $str = <>;
my @array = split (/ /, $str);

my $sum;
my $correct;

for my $math(@array){
    $sum += $math;
}

my @ten = (1..10);

for my $ten(@ten){
    $correct += $ten;
}

my $remainder = $correct - $sum;

print "$remainder\n";
0