QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#494280 | #5006. Heximal | pagohia | WA | 0ms | 3616kb | C++14 | 767b | 2024-07-27 15:00:43 | 2024-07-27 15:00:44 |
Judging History
answer
#include<iostream>
#include<algorithm>
#include<queue>
#include<deque>
#include<vector>
using namespace std;
#define ll long long
const int N = 1e6+10;
string s;
void solve()
{
cin >> s;
int len = s.length();
int cnt = 0;
if (len ==1&&(s[0]-'0'<6))
{
cout << 1;
}
else if (len == 1 && (s[0] - '0' >= 6))
{
cout << 2;
}
if (len % 6 == 0) {
int m = len / 5;
cout << len + m + 1;
}
else if (len % 5 == 0)
{
int m = len / 5;
cout << len + m + 1;
}
else if (len % 5 != 0&&len%6!=0) {
int m = len / 5;
cout << len + m+1;
}
}
struct node {
string s;
double score;
int get=0;
}arr[6];
int cmp(node s1, node s2)
{
return s1.score > s2.score;
}
int main()
{
solve();
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3616kb
input:
0
output:
12
result:
wrong answer 1st lines differ - expected: '1', found: '12'