2 条题解

  • 4
    @ 2024-6-29 18:09:57

    一般来说,Sleeping Cup 中的题目大多数需要文件读写。请在 文件IO 一栏获知文件名信息。

    代码如下:

    #include <bits/stdc++.h>
    
    using namespace std;
    
    int main()
    {
       freopen("test.in", "r", stdin);
       freopen("test.out", "w", stdout);
       printf("Hello, World!");
       return 0;
    }
    
    • 1
      @ 2025-7-21 18:58:49

      Generally, most problems in Sleeping Cup require file I/O. Check the File IO section for filename details.

      Sample code:

      #include <bits/stdc++.h>
      
      using namespace std;
      
      int main()
      {
         freopen("test.in", "r", stdin);
         freopen("test.out", "w", stdout);
         printf("Hello, World!");
         return 0;
      }
      • 1

      信息

      ID
      1
      时间
      1000ms
      内存
      512MiB
      难度
      1
      标签
      递交数
      46
      已通过
      19
      上传者