AtCoder Beginner Contest 003

Submission #1772439

Source codeソースコード

#include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
int main(){
  int N;
  scanf("%d",&N);
  printf("%d\n",(double)N*(N+1)/2/N*10000);
  return 0;
}

Submission

Task問題 A - AtCoder社の給料
User nameユーザ名 nii
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 WA
Score得点 0
Source lengthソースコード長 186 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Compiler messageコンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:8:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=]
printf("%d\n",(double)N*(N+1)/2/N*10000);
^
./Main.cpp:7:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&N);
^

Test case

Set

Set name Score得点 / Max score Cases
All 0 / 100 00_sample_01.txt,00_sample_02.txt,test_100.txt,test_14.txt,test_29.txt,test_4.txt,test_42.txt,test_48.txt,test_54.txt,test_59.txt,test_71.txt,test_72.txt,test_84.txt,test_96.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
00_sample_01.txt WA
00_sample_02.txt WA
test_100.txt WA
test_14.txt WA
test_29.txt WA
test_4.txt WA
test_42.txt WA
test_48.txt WA
test_54.txt WA
test_59.txt WA
test_71.txt WA
test_72.txt WA
test_84.txt WA
test_96.txt WA