結果

問題 No.69 文字を自由に並び替え
ユーザー 37zigen37zigen
提出日時 2016-04-01 11:36:37
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 2,105 ms
コンパイル使用メモリ 71,168 KB
実行使用メモリ 56,000 KB
最終ジャッジ日時 2023-09-09 20:57:33
合計ジャッジ時間 4,597 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,552 KB
testcase_01 AC 119 ms
55,592 KB
testcase_02 AC 120 ms
55,728 KB
testcase_03 WA -
testcase_04 AC 119 ms
55,836 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 121 ms
56,000 KB
testcase_10 AC 121 ms
55,876 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 121 ms
55,604 KB
testcase_14 AC 121 ms
55,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder069;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str1=sc.next();
		String str2=sc.next();
		char[] c1=str1.toCharArray();
		char[] c2=str2.toCharArray();
		for(int i=0;i<c1.length;i++){
			if(c1[i]!=c2[i]){
				System.out.println("NO");
				return;
			}
		}
		System.out.println("YES");
	}
}
0