結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2017-07-13 01:22:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 89 bytes |
コンパイル時間 | 534 ms |
コンパイル使用メモリ | 57,720 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-07 16:56:10 |
合計ジャッジ時間 | 1,427 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main(){int N;scanf("%d",&N);printf("%d\n",(int)__builtin_log2((N<<1)-1));} | ^~~~
ソースコード
#include<ios> main(){int N;scanf("%d",&N);printf("%d\n",(int)__builtin_log2((N<<1)-1));}