提出 #562232
ソースコード 拡げる
#include <cstdio>
using namespace std;
int main()
{
int N;
scanf("%d", &N);
if (N == 1)
printf("1\n");
else
printf("%d\n", (N * 7) / 2);
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - ダイスゲーム |
| ユーザ | misaki |
| 言語 | C++ (GCC 4.9.2) |
| 得点 | 100 |
| コード長 | 170 Byte |
| 結果 | AC |
| 実行時間 | 24 ms |
| メモリ | 804 KiB |
コンパイルエラー
./Main.cpp: In function ‘int main()’:
./Main.cpp:7:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample-01.txt, sample-02.txt, sample-03.txt |
| All | sample-01.txt, sample-02.txt, sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01-01.txt | AC | 24 ms | 704 KiB |
| 01-02.txt | AC | 23 ms | 668 KiB |
| 01-03.txt | AC | 24 ms | 708 KiB |
| 01-04.txt | AC | 22 ms | 800 KiB |
| 01-05.txt | AC | 22 ms | 788 KiB |
| 01-06.txt | AC | 22 ms | 712 KiB |
| 01-07.txt | AC | 23 ms | 800 KiB |
| 01-08.txt | AC | 23 ms | 708 KiB |
| 01-09.txt | AC | 24 ms | 700 KiB |
| 01-10.txt | AC | 23 ms | 800 KiB |
| 01-11.txt | AC | 23 ms | 796 KiB |
| 01-12.txt | AC | 24 ms | 792 KiB |
| 01-13.txt | AC | 23 ms | 796 KiB |
| sample-01.txt | AC | 24 ms | 804 KiB |
| sample-02.txt | AC | 24 ms | 708 KiB |
| sample-03.txt | AC | 23 ms | 704 KiB |