結果
問題 | No.544 Delete 7 |
ユーザー |
![]() |
提出日時 | 2017-07-17 18:43:39 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 87 ms / 1,000 ms |
コード長 | 522 bytes |
コンパイル時間 | 2,963 ms |
コンパイル使用メモリ | 79,444 KB |
実行使用メモリ | 39,360 KB |
最終ジャッジ日時 | 2024-11-21 16:20:38 |
合計ジャッジ時間 | 8,324 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class N544 { public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String N=br.readLine(); int ans=0; int A=0; int B=0; int ok=0; int l=N.length(); for(int i=0;i<l;i++) { if(N.substring(l-i-1,l-i).equals("7")) { A=A+(int)Math.pow(10, i); } } B=Integer.parseInt(N)-A; System.out.println(A+" "+B); } }