結果

問題 No.3027 114514
ユーザー akakimidoriakakimidori
提出日時 2017-05-07 23:31:20
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 24,140 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-12 16:15:31
合計ジャッジ時間 1,008 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,348 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,352 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include<stdlib.h>

void run(void){
  int n;
  scanf("%d",&n);
  if(n==1){
    printf("7\n");
  } else if(n==5){
    printf("5\n");
  } else {
    int *mem=(int *)malloc(sizeof(int)*(1<<(12+n)));
    mem[12]=3;
    printf("%d\n",mem[145]);
  }
  return;
}

int main(void){
  run();
  return 0;
}
0