結果
問題 |
No.8027 114514
|
ユーザー |
![]() |
提出日時 | 2017-05-07 23:31:20 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 240 ms |
コンパイル使用メモリ | 21,248 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-14 14:53:43 |
合計ジャッジ時間 | 757 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 7 |
コンパイルメッセージ
main.c: In function ‘run’: main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d",&n); | ^~~~~~~~~~~~~~
ソースコード
#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; }