結果
| 問題 |
No.1372 Median of Submasks
|
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2021-02-05 21:24:53 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 134 ms / 2,000 ms |
| コード長 | 307 bytes |
| コンパイル時間 | 2,036 ms |
| コンパイル使用メモリ | 74,156 KB |
| 実行使用メモリ | 41,600 KB |
| 最終ジャッジ日時 | 2024-07-02 11:37:46 |
| 合計ジャッジ時間 | 6,456 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
sc.close();
for (int i = 62; i >= 0; i--) {
if ((n >> i & 1) == 1) {
System.out.println(1L << i);
return;
}
}
}
}
ks2m