結果
問題 |
No.2224 UFO Game
|
ユーザー |
![]() |
提出日時 | 2022-12-10 17:52:43 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 125 ms / 2,000 ms |
コード長 | 342 bytes |
コンパイル時間 | 2,733 ms |
コンパイル使用メモリ | 74,320 KB |
実行使用メモリ | 54,284 KB |
最終ジャッジ日時 | 2024-09-13 04:33:33 |
合計ジャッジ時間 | 4,483 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
// import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); if (s.charAt(0) == 'x') System.out.println((1L<<32)-Integer.parseInt(s.substring(1))); else System.out.println(Integer.parseInt(s)); sc.close(); } }