結果
| 問題 |
No.2420 Simple Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-12 15:27:25 |
| 言語 | Perl (5.40.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 373 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 7,552 KB |
| 最終ジャッジ日時 | 2024-11-20 02:20:25 |
| 合計ジャッジ時間 | 15,909 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 27 WA * 6 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use strict;
use warnings;
use POSIX 'floor';
my $n = <>;
chomp $n;
for (my $i = 0; $i < $n; $i++) {
my ($a, $b) = split /[ \n]/, <>;
my $c = sqrt($a) + sqrt($b);
print floor($c) + 1, "\n";
}