結果
問題 |
No.2420 Simple Problem
|
ユーザー |
|
提出日時 | 2023-08-12 15:14:28 |
言語 | Perl (5.40.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 343 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 53,120 KB |
最終ジャッジ日時 | 2024-11-20 00:39:24 |
合計ジャッジ時間 | 17,289 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 27 WA * 6 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
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"; }