mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
add more testdata examples
This commit is contained in:
1 parent
26ded9d5df
commit
dd9dd49b02
8 files changed
+21
No files matched your search
File renamed without changes.
File renamed without changes.
+1
@@ -0,0 +1 @@
|
|||||||
|
1 2
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
3
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
1 2
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
3
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
#include "testlib.h"
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
/*
|
||||||
|
* inf:输入
|
||||||
|
* ouf:选手输出
|
||||||
|
* ans:标准输出
|
||||||
|
*/
|
||||||
|
registerTestlibCmd(argc, argv);
|
||||||
|
double pans = ouf.readDouble(), jans = ans.readDouble();
|
||||||
|
if (pans == jans) quitf(_ok, "Good job\n");
|
||||||
|
else quitf(_wa, "Too big or too small, expected %f, found %f\n", jans, pans);
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
type: default
|
||||||
|
checker_type: testlib
|
||||||
|
checker: chk.cc
|
||||||
Reference in new issue
Block a user