結果

問題 No.2420 Simple Problem
ユーザー emoanyemoany
提出日時 2023-08-12 15:14:28
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 897 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 53,248 KB
最終ジャッジ日時 2024-04-30 08:36:43
合計ジャッジ時間 18,241 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
6,820 KB
testcase_01 AC 214 ms
25,088 KB
testcase_02 AC 8 ms
6,944 KB
testcase_03 AC 84 ms
12,928 KB
testcase_04 AC 416 ms
43,648 KB
testcase_05 AC 259 ms
30,080 KB
testcase_06 AC 497 ms
53,120 KB
testcase_07 AC 501 ms
53,120 KB
testcase_08 AC 498 ms
53,120 KB
testcase_09 AC 500 ms
53,120 KB
testcase_10 AC 495 ms
53,120 KB
testcase_11 AC 495 ms
53,120 KB
testcase_12 AC 498 ms
53,120 KB
testcase_13 AC 512 ms
53,120 KB
testcase_14 AC 495 ms
53,120 KB
testcase_15 AC 495 ms
53,120 KB
testcase_16 AC 495 ms
53,120 KB
testcase_17 AC 499 ms
53,120 KB
testcase_18 AC 498 ms
53,120 KB
testcase_19 AC 497 ms
53,120 KB
testcase_20 AC 496 ms
53,248 KB
testcase_21 AC 499 ms
53,120 KB
testcase_22 AC 502 ms
53,120 KB
testcase_23 AC 498 ms
53,120 KB
testcase_24 AC 501 ms
53,120 KB
testcase_25 AC 510 ms
53,120 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 6 ms
6,940 KB
testcase_33 AC 203 ms
24,704 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

my $n = <>;
chomp $n;

my @a;
my @b;
my $cand = 1000000000;

for (my $i = 0; $i < $n; $i++) {
    ($a[$i], $b[$i]) = split /[ \n]/, <>;

    print int(sqrt($a[$i]) + sqrt($b[$i]))+1, "\n";
}
0