結果
問題 |
No.5 数字のブロック
|
ユーザー |
|
提出日時 | 2023-10-30 19:32:31 |
言語 | C (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 426 bytes |
コンパイル時間 | 357 ms |
コンパイル使用メモリ | 28,928 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-25 17:22:26 |
合計ジャッジ時間 | 6,119 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 34 |
ソースコード
#include <stdio.h> #include <stdlib.h> int main(void) { int i, l, n, sum = 0; int *w; scanf("%d", &l); scanf("%d", &n); w = (int *)malloc(sizeof(int) * n); for (int i = 0; i < n; i++) { scanf("%d", w[i]); } for (int i = 0; i < n; i++) { printf("%d\n", w[i]); if (w[i] <= l) { sum++; } } printf("%d", sum); return 0; }