結果

問題 No.1329 Square Sqsq
ユーザー ks2mks2m
提出日時 2021-01-08 21:23:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 188 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 1,938 ms
コンパイル使用メモリ 71,424 KB
実行使用メモリ 56,612 KB
最終ジャッジ日時 2023-08-10 08:19:52
合計ジャッジ時間 7,157 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,596 KB
testcase_01 AC 117 ms
55,964 KB
testcase_02 AC 118 ms
56,160 KB
testcase_03 AC 173 ms
56,304 KB
testcase_04 AC 184 ms
56,488 KB
testcase_05 AC 188 ms
56,296 KB
testcase_06 AC 173 ms
56,560 KB
testcase_07 AC 184 ms
56,076 KB
testcase_08 AC 185 ms
56,388 KB
testcase_09 AC 184 ms
56,484 KB
testcase_10 AC 183 ms
56,360 KB
testcase_11 AC 186 ms
56,224 KB
testcase_12 AC 177 ms
56,236 KB
testcase_13 AC 185 ms
56,612 KB
testcase_14 AC 137 ms
56,056 KB
testcase_15 AC 130 ms
55,880 KB
testcase_16 AC 123 ms
55,936 KB
testcase_17 AC 137 ms
56,004 KB
testcase_18 AC 172 ms
56,088 KB
testcase_19 AC 169 ms
55,908 KB
testcase_20 AC 135 ms
56,012 KB
testcase_21 AC 134 ms
55,636 KB
testcase_22 AC 182 ms
56,104 KB
testcase_23 AC 153 ms
56,084 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