Submission #66235


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<stdio.h>
main(){
//int型を使うとかけ算の結果が
//int型の範囲を超える場合がある。
//long longの書式制御文字は%lld
long long a,b;//a,bの宣言(long long型はintよりも大きい型)
scanf("%lld %lld",&a,&b);//aとbの入力
printf("%lld\n",a+b);//和
printf("%lld\n",a-b);//差
printf("%lld\n",a*b);//積
printf("%lld\n",a/b);//商
printf("%lld\n",a%b);//剰除(余り)
return(0);
}

ステータス

項目 データ
問題 1124 - 和 差 積 商 余
ユーザー名 ei2037
投稿日時 2021-04-27 17:03:33
言語 C
状態 Accepted
得点 1
ソースコード長 483 Byte
最大実行時間 27 ms
最大メモリ使用量 528 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
002_in-1.txt AC 23 ms 504 KB
1
002_in-2.txt AC 18 ms 528 KB
1
002_in-3.txt AC 27 ms 364 KB
1
002_in-4.txt AC 14 ms 384 KB
1
002_in-5.txt AC 19 ms 340 KB
1