Submission #47568


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
int main( void )
{
double a, b, s;
char c;
scanf("%lf %c %lf", &a, &c, &b);
if( c == '+' ) {
s = a + b;
printf("%.0f\n", s);
} else {
s = a - b;
printf("%.0f\n", s);
}
return 0;
}

ステータス

項目 データ
問題 0935 - crom君の宿題
ユーザー名 sth18_k-masui
投稿日時 2019-02-18 15:57:54
言語 C
状態 Accepted
得点 10
ソースコード長 235 Byte
最大実行時間 50 ms
最大メモリ使用量 568 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01.txt AC 50 ms 376 KB
1
input02.txt AC 43 ms 520 KB
1
input03.txt AC 37 ms 568 KB
1
input04.txt AC 15 ms 520 KB
1