Submission #00057


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <stdio.h>
#include <math.h>
#include <string.h>
int fgetInt(){
int a;
scanf("%d", &a);
return a;
}
int ruijou(int a, int b){
int i;
int ans = 1;
for ( i = 1; i <= b; i++ ) {
ans *= a;
}
return ans;
}
int ar[1000];
int main(){
int h = fgetInt();
int y = fgetInt();
int n = fgetInt();
int i;
for ( i = 0; i < n; i++ ) {
int d = fgetInt();
if ( h-10 <= d*y ) ar[i] = 1;
else ar[i] = 0;
}
for ( i = 0; i < n; i++ ) {
if ( ar[i] ) {
printf("deep\n");
}
else {
printf("shallow\n");
}
}
return 0;
}

ステータス

項目 データ
問題 0004 - この川
ユーザー名 r1825
投稿日時 2018-07-09 16:37:09
言語 C
状態 Accepted
得点 10
ソースコード長 641 Byte
最大実行時間 29 ms
最大メモリ使用量 448 KB

セット

セット 得点 Cases
1 ALL 10 / 10 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01.dat AC 19 ms 380 KB
1
in02.dat AC 29 ms 404 KB
1
in03.dat AC 19 ms 360 KB
1
in04.dat AC 20 ms 392 KB
1
in05.dat AC 22 ms 448 KB
1
in06.dat AC 18 ms 408 KB
1