Submission #00100


ソースコード

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
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main()
{
double a;
double b,c;
int n;
long long ans;
cin >> a ;
if(a<=7)
{
cout << 1 << endl;
return 0;
}
b=a/7;
ans=b;
n=a;
for(int i=0;i<3;i++){
if(b-ans>=0&&!(ans*7>=a)){
ans+=1;
}
}
cout << ans << endl;
}

ステータス

項目 データ
問題 0002 - Eating NAMEKUZI 2
ユーザー名 <span style="color:#000000;font-weight:bold;">ei2031</span>
投稿日時 2020-07-14 17:14:25
言語 C++17
状態 Wrong Answer
得点 5
ソースコード長 311 Byte
最大実行時間 27 ms
最大メモリ使用量 700 KB

セット

セット 得点 Cases
1 task01 5 / 5 in01*, sample01.txt
2 task02 0 / 15 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01_01.txt AC 20 ms 600 KB
1
2
in01_02.txt AC 19 ms 700 KB
1
2
in01_03.txt AC 20 ms 540 KB
1
2
in01_04.txt AC 19 ms 640 KB
1
2
in01_05.txt AC 20 ms 612 KB
1
2
in01_06.txt AC 20 ms 576 KB
1
2
in01_07.txt AC 18 ms 544 KB
1
2
in01_08.txt AC 20 ms 516 KB
1
2
in01_09.txt AC 17 ms 492 KB
1
2
in01_10.txt AC 22 ms 592 KB
1
2
in01_11.txt AC 18 ms 560 KB
1
2
in02_01.txt AC 22 ms 532 KB
2
in02_02.txt AC 24 ms 504 KB
2
in02_03.txt AC 18 ms 608 KB
2
in02_04.txt AC 27 ms 584 KB
2
in02_05.txt AC 25 ms 560 KB
2
in02_06.txt AC 18 ms 532 KB
2
in02_07.txt AC 21 ms 500 KB
2
in02_08.txt AC 23 ms 596 KB
2
in02_09.txt WA 20 ms 692 KB
2
sample01.txt AC 22 ms 532 KB
1
2
sample02.txt AC 21 ms 632 KB
2