Problem 2746 --Structure and Class - Dice IV

2746: Structure and Class - Dice IV

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $0$ 正确数量 $0$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 STL

Dice IV 

Write a program which reads n dices constructed in the same way as Dice I, and determines whether they are all different. For the determination, use the same way as Dice III.

In the first line, the number of dices n is given. In the following n lines, six integers assigned to the dice faces are given respectively in the same way as Dice III.
Print "Yes" if given dices are all different, otherwise "No" in a line.
3
1 2 3 4 5 6
6 2 4 3 5 1
6 5 4 3 2 1
No

2≤n≤100 

0≤ the integer assigned to a face ≤100

推荐代码 查看2746 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$ $ms]
内存最少[$ $KB]
第一AC
第一挑战

赛题来源/所属竞赛 会津大学《C++ Programming I》 C++程序设计(入门)

竞赛编号 竞赛名称 竞赛时间 访问比赛