結果

問題 No.164 ちっちゃくないよ!!
ユーザー luckseedluckseed
提出日時 2015-03-13 17:37:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 205 ms / 2,000 ms
コード長 612 bytes
コンパイル時間 2,985 ms
コンパイル使用メモリ 89,728 KB
実行使用メモリ 42,896 KB
最終ジャッジ日時 2024-04-21 15:21:58
合計ジャッジ時間 5,086 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
41,384 KB
testcase_01 AC 138 ms
41,552 KB
testcase_02 AC 136 ms
41,472 KB
testcase_03 AC 136 ms
41,156 KB
testcase_04 AC 139 ms
41,352 KB
testcase_05 AC 203 ms
42,372 KB
testcase_06 AC 205 ms
42,684 KB
testcase_07 AC 190 ms
42,008 KB
testcase_08 AC 200 ms
42,896 KB
testcase_09 AC 202 ms
42,668 KB
testcase_10 AC 142 ms
41,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.nio.*;
import java.nio.file.*;
import java.util.*;
import java.util.concurrent.*;
import java.math.*;
import java.util.stream.*;

public class Main {
	public static void main(String... args) throws Throwable {
		Scanner in = new Scanner(System.in);
		
		ArrayList<Long> list = new ArrayList<>();
		
		int cnt = in.nextInt();
		for (int i = 0; i < cnt; i++) {
			String str = in.next();
			list.add(Long.parseLong(str, str.codePoints().map(c -> (int)'A' <= c ? (10 + (c - (int)'A') + 1) : (c - (int)'0' + 1)).max().getAsInt()));
		}
		System.out.println(Collections.min(list));
	}
}
0