結果
問題 | No.820 Power of Two |
ユーザー | shidoro_onn |
提出日時 | 2019-06-16 12:54:05 |
言語 | C (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 372 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 30,720 KB |
実行使用メモリ | 7,296 KB |
最終ジャッジ日時 | 2024-05-02 22:47:32 |
合計ジャッジ時間 | 3,729 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,816 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | TLE | - |
testcase_03 | AC | 1 ms
6,944 KB |
testcase_04 | AC | 1 ms
6,944 KB |
testcase_05 | TLE | - |
testcase_06 | AC | 1 ms
6,944 KB |
testcase_07 | AC | 364 ms
6,940 KB |
testcase_08 | TLE | - |
testcase_09 | TLE | - |
ソースコード
#include <stdio.h> #include <math.h> int main(void){ int i=0; int n=0; scanf("%d%d",&i,&n); double joken1 = pow(2.0,(double)i); int m=0; int N2 = (int)joken1; double joken2 = pow(2.0,(double)n); int K2 = (int)joken2; int num=0; for(m=1;m<=N2;m++){ if(m%K2==0){ num++; } } printf("%d",num); }