CF1145E.Fourier Doodles
普及/提高-
通过率:0%
时间限制:1.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
In this problem you have to solve a simple classification task: given an image, determine whether it depicts a Fourier doodle.
You are given a set of 50 images with ids 1 through 50. You are also given a text file labels.txt containing the labels for images with ids 1 through 20, which comprise the learning data set.
You have to output the classification results for images with ids 21 through 50 in the same format.
本题要求你完成一个简单的分类任务:给定一张图像,判断其是否为傅里叶涂鸦(Fourier doodle)。
你将获得一组编号为 1 至 50 的共 50 张图像。同时,你还将获得一个文本文件 labels.txt,其中包含编号为 1 至 20 的图像的标签,这些图像构成训练数据集。
你需要以相同格式输出编号为 21 至 50 的图像的分类结果。
输入格式
Download the images and the training labels
Each line of the file labels.txt contains a single integer 0 or 1. Line i (1-based) contains the label of the image {i}.png. Label 1 means that the image depicts a Fourier doodle, label 0 - that it does not.
文件 labels.txt 的每一行包含一个整数:0 或 1。第 i 行(从 1 开始计数)包含图像 {i}.png 的标签。标签 1 表示该图像描绘了一个傅里叶涂鸦,标签 0 表示该图像不是傅里叶涂鸦。
输出格式
Output 30 lines, one line per image 21 through 50. Line i (1-based) should contain the classification result for the image {i + 20}.png.
输出30行,每行对应图像21至50(含)。第 i 行(从1开始计数)应包含图像 {i + 20}.png 的分类结果。
输入解题思路,AI测评打分。不知道怎么写?