QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#89338#5255. Greedy Drawerssky3142AC ✓2ms3496kbC++201.0kb2023-03-19 20:17:502023-03-19 20:17:50

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-19 20:17:50]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3496kb
  • [2023-03-19 20:17:50]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

using LL = long long;



int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n;
    cin >> n;
    // int t = n / 6;
    vector<pair<int, int>> book, drawer;
    for (int i = 0; i + 6 <= n; i += 6)
    {
        for (int j = 0; j < 6; ++j)
        {
            book.push_back({1000 - i - j, i + j + 1});
        }
        drawer.push_back({1000 - i, i + 2});
        drawer.push_back({1000 - i, i + 3});
        drawer.push_back({1000 - i - 2, i + 4});
        drawer.push_back({1000 - i - 3, i + 5});
        drawer.push_back({1000 - i - 4, i + 6});
        drawer.push_back({1000 - i - 4, i + 6});
    }
    for (int i = 0; i < n % 6; ++i)
    {
        book.push_back({500, 500});
        drawer.push_back({500, 500});
    }
    for (auto [x, y] : book)
    {
        cout << x << ' ' << y << '\n';
    }
    cout << '\n';
    for (auto [x, y] : drawer)
    {
        cout << x << ' ' << y << '\n';
    }
}

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3432kb

input:

150

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #2:

score: 0
Accepted
time: 0ms
memory: 3424kb

input:

151

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #3:

score: 0
Accepted
time: 0ms
memory: 3364kb

input:

152

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #4:

score: 0
Accepted
time: 2ms
memory: 3380kb

input:

153

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #5:

score: 0
Accepted
time: 2ms
memory: 3404kb

input:

154

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #6:

score: 0
Accepted
time: 2ms
memory: 3496kb

input:

155

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #7:

score: 0
Accepted
time: 2ms
memory: 3404kb

input:

156

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #8:

score: 0
Accepted
time: 0ms
memory: 3396kb

input:

157

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #9:

score: 0
Accepted
time: 0ms
memory: 3440kb

input:

158

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #10:

score: 0
Accepted
time: 0ms
memory: 3488kb

input:

159

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #11:

score: 0
Accepted
time: 2ms
memory: 3404kb

input:

160

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #12:

score: 0
Accepted
time: 0ms
memory: 3424kb

input:

161

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #13:

score: 0
Accepted
time: 2ms
memory: 3364kb

input:

162

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #14:

score: 0
Accepted
time: 2ms
memory: 3372kb

input:

163

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #15:

score: 0
Accepted
time: 2ms
memory: 3368kb

input:

164

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #16:

score: 0
Accepted
time: 2ms
memory: 3416kb

input:

165

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #17:

score: 0
Accepted
time: 0ms
memory: 3416kb

input:

166

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #18:

score: 0
Accepted
time: 0ms
memory: 3412kb

input:

167

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #19:

score: 0
Accepted
time: 2ms
memory: 3360kb

input:

168

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy

Test #20:

score: 0
Accepted
time: 2ms
memory: 3408kb

input:

250

output:

1000 1
999 2
998 3
997 4
996 5
995 6
994 7
993 8
992 9
991 10
990 11
989 12
988 13
987 14
986 15
985 16
984 17
983 18
982 19
981 20
980 21
979 22
978 23
977 24
976 25
975 26
974 27
973 28
972 29
971 30
970 31
969 32
968 33
967 34
966 35
965 36
964 37
963 38
962 39
961 40
960 41
959 42
958 43
957 44
...

result:

ok you killed Janko's strategy