結果

問題 No.547 未知の言語
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 17:17:04
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 2,186 ms
コンパイル使用メモリ 72,472 KB
実行使用メモリ 57,188 KB
最終ジャッジ日時 2023-10-11 11:44:58
合計ジャッジ時間 7,599 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,368 KB
testcase_01 AC 124 ms
55,964 KB
testcase_02 AC 122 ms
55,968 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 123 ms
55,548 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 126 ms
55,808 KB
testcase_14 WA -
testcase_15 AC 121 ms
55,832 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 124 ms
56,120 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 121 ms
55,800 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 124 ms
55,996 KB
testcase_29 AC 123 ms
55,544 KB
testcase_30 WA -
testcase_31 AC 122 ms
55,944 KB
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int n = sc.nextInt();
		for (int i=1; i<=n; i++) {
			String s = sc.next();
			String t = sc.next();
			if (!s.equals(t) || n==1) {
				System.out.println(i);
				System.out.println(s);
				System.out.println(t);
				return;
			}
		}
		
	}
}
0