結果

問題 No.2174 3 O'clock Easy
ユーザー tailstails
提出日時 2022-12-27 11:06:52
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 693 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-01 15:57:28
合計ジャッジ時間 1,115 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

$n=<>;
$q|=$n/3;
print $q**4*27/4 + $q**3*33/2 + $q**2*39/4 - $q + (0,$n,$n**2+$n-1)[$n%3];
0