每日一练3:七月初七

今天是8月22号,农历七月七:izakaya_lantern:
色有七彩:rainbow:,音有七律:musical_note:
论坛的活跃少不了你:slightly_smiling_face:

三分天注定:star:,七分靠打拼:fist:
AC​:white_check_mark:虽好,可不要刷正确率:100:

小金同学打开"学习空间",
发现AC率恰好是十分之七,
他暗自窃喜:face_with_hand_over_mouth:,非常满意!

请根据给定的 AC率 p 输出对应的评语:

  • p < 70%: Great​:+1:
  • p = 70%: Perfect :two_hearts:
  • p > 70%: Excellent :clap:
0 投票人
#include <ctime>
#include <cstdlib>
#include <string>
#include <iomanip>
#include <iostream>
using namespace std;

int main ()
{
	string s[3] = {"Great", "Perfect", "Excellent"};
	srand(time(NULL));
	int a = rand() % 0x70 + 0xa70;
	int t = rand() % 0100 + 0xf00;
	int p = a * 100 / t;
	cout << " AC: " << a << endl;
	cout << "TOT: " << t << endl;
	cout << setw(9) << p << endl;
	cout << s[/*选择评语*/] << endl;
	return 0;
}
4 个赞

我个蒟蒻
image

3 个赞

我只有53%

3 个赞
#include <ctime>
#include <cstdlib>
#include <string>
#include <iomanip>
#include <iostream>
using namespace std;

int main ()
{
	string s[3] = {"Great", "Perfect", "Excellent"};
	srand(time(NULL));
	int a = rand() % 0x70 + 0xa70;
	int t = rand() % 0100 + 0xf00;
	int p = a * 100 / t;
	cout << " AC: " << a << endl;
	cout << "TOT: " << t << endl;
	cout << setw(9) << p << endl;
	cout << s[(p>=0.7?(p==0.7?1:2):0)] << endl;
	return 0;
}
3 个赞

AC
哎呦你干嘛哈哈哎呦

2 个赞


总比我好

2 个赞

《41%》dalao666

3 个赞

eee,我说我是刷的你信吗

2 个赞

我没刷我只有这么多
image

:disappointed_relieved:

2 个赞

实力的

2 个赞

:heart_eyes: :heart_eyes:

2 个赞

假的
假的
真的(有刷RE,TLE,MLE,OLE之类的错)38%
真的(在第一课刷稀有错误ing

2 个赞

哎,我大部分情况都不调试的

2 个赞


73%

1 个赞


刚好50%

1 个赞


:sob: :sob: :sob:我才是蒟蒻qwq

1 个赞