結果
問題 | No.547 未知の言語 |
ユーザー |
|
提出日時 | 2018-02-16 18:58:48 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 132 ms / 2,000 ms |
コード長 | 447 bytes |
コンパイル時間 | 3,520 ms |
コンパイル使用メモリ | 75,232 KB |
実行使用メモリ | 41,516 KB |
最終ジャッジ日時 | 2024-06-26 03:01:21 |
合計ジャッジ時間 | 8,130 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
package m.shin; import java.util.Scanner; public class Con547 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N = s.nextInt(); String[] S = new String[N]; for(int i = 0;i < N;i++){ S[i] = s.next(); } for(int i = 0;i < N;i++){ String str = s.next(); if(!str.equals(S[i])){ System.out.println(i+1); System.out.println(S[i]); System.out.println(str); } } s.close(); } }