Submission #37376


ソースコード

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
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int queue[2000000];
int main(){
int count = 0;
int get = 0;
char c[10];
scanf("%s", c);
while(strcmp(c, "exit")) {
if(!strcmp(c, "push")) {
scanf("%d", &queue[count++]);
}
else if(!strcmp(c, "front")) {
printf("%d\n", queue[get]);
}
else {
get++;
}
scanf("%s", c);
}
return(0);
}

ステータス

項目 データ
問題 0601 - プログラミング入門:Queue
ユーザー名 r1825
投稿日時 2018-06-14 19:38:55
言語 C
状態 Accepted
得点 1
ソースコード長 530 Byte
最大実行時間 158 ms
最大メモリ使用量 6424 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Input01 AC 32 ms 380 KB
1
Input02 AC 27 ms 540 KB
1
Input03 AC 25 ms 596 KB
1
Input04 AC 26 ms 648 KB
1
Input05 AC 25 ms 568 KB
1
Input06 AC 31 ms 596 KB
1
Input07 AC 40 ms 912 KB
1
Input08 AC 65 ms 1624 KB
1
Input09 AC 108 ms 3080 KB
1
Input10 AC 158 ms 6424 KB
1