結果
問題 |
No.795 Restrictions!!!!!!!!!!!!!!
|
ユーザー |
![]() |
提出日時 | 2022-05-14 10:08:33 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 357 bytes |
コンパイル時間 | 2,801 ms |
コンパイル使用メモリ | 74,196 KB |
実行使用メモリ | 42,868 KB |
最終ジャッジ日時 | 2024-07-22 18:17:16 |
合計ジャッジ時間 | 7,454 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 20 |
ソースコード
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String line; line=sc.nextLine(); String n=line; line=sc.nextLine(); String m=line; if(n.equals(m.substring(0,m.length()-1))){ System.out.println("yes"); }else{ System.out.println("no"); } } }