結果

問題 No.1329 Square Sqsq
ユーザー ks2mks2m
提出日時 2021-01-08 21:23:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 172 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 1,725 ms
コンパイル使用メモリ 74,536 KB
実行使用メモリ 42,316 KB
最終ジャッジ日時 2024-04-28 01:51:36
合計ジャッジ時間 5,949 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
41,340 KB
testcase_01 AC 108 ms
40,892 KB
testcase_02 AC 109 ms
41,036 KB
testcase_03 AC 165 ms
42,244 KB
testcase_04 AC 171 ms
41,880 KB
testcase_05 AC 162 ms
42,280 KB
testcase_06 AC 163 ms
42,192 KB
testcase_07 AC 166 ms
42,268 KB
testcase_08 AC 171 ms
42,032 KB
testcase_09 AC 163 ms
42,140 KB
testcase_10 AC 158 ms
42,316 KB
testcase_11 AC 172 ms
41,968 KB
testcase_12 AC 164 ms
42,100 KB
testcase_13 AC 158 ms
42,316 KB
testcase_14 AC 116 ms
40,840 KB
testcase_15 AC 107 ms
40,276 KB
testcase_16 AC 110 ms
41,252 KB
testcase_17 AC 114 ms
40,320 KB
testcase_18 AC 155 ms
41,764 KB
testcase_19 AC 163 ms
41,968 KB
testcase_20 AC 112 ms
40,224 KB
testcase_21 AC 104 ms
40,084 KB
testcase_22 AC 158 ms
41,780 KB
testcase_23 AC 144 ms
41,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		sc.close();

		int n = s.length() + 1;
		System.out.println(n / 2);
	}
}
0