結果
| 問題 | No.1372 Median of Submasks |
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2021-02-06 06:54:57 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 2,982 ms |
| コンパイル使用メモリ | 107,828 KB |
| 実行使用メモリ | 28,372 KB |
| 最終ジャッジ日時 | 2024-07-02 15:07:14 |
| 合計ジャッジ時間 | 3,876 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 WA * 14 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using static System.Math;
using System;
public class Hello
{
static void Main()
{
var n = long.Parse(Console.ReadLine().Trim());
long ans = 1 << (int)(Log(n) / Log(2));
Console.WriteLine(ans);
}
}
bluemegane