結果

問題 No.111 あばばばば
ユーザー papinianuspapinianus
提出日時 2016-07-27 09:39:32
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 215 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 30,800 KB
実行使用メモリ 31,024 KB
最終ジャッジ日時 2024-04-24 10:19:26
合計ジャッジ時間 1,172 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
30,868 KB
testcase_01 AC 42 ms
30,944 KB
testcase_02 AC 41 ms
31,024 KB
testcase_03 AC 42 ms
30,756 KB
testcase_04 AC 42 ms
30,784 KB
testcase_05 AC 39 ms
30,836 KB
testcase_06 AC 40 ms
30,796 KB
testcase_07 AC 39 ms
30,672 KB
testcase_08 AC 40 ms
30,936 KB
testcase_09 AC 39 ms
30,820 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$L = trim(fgets(STDIN));
echo ((($L - 3 + 1) + 1)*(($L-1)/2) / 2);
echo PHP_EOL;
/*
ababababa
9
777
55555
3333333

abababa
7
555
33333

ababa
5
333

aba
3

(1 + 9-3+1) * (9-1/2) /2
初項+末項      項数
*/
0