QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#494280#5006. HeximalpagohiaWA 0ms3616kbC++14767b2024-07-27 15:00:432024-07-27 15:00:44

Judging History

你现在查看的是最新测评结果

  • [2024-07-27 15:00:44]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3616kb
  • [2024-07-27 15:00:43]
  • 提交

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'