ZOJ-2795
来源:互联网 发布:怎么获得淘宝代金券 编辑:程序博客网 时间:2024/06/09 14:11
#include<stdio.h>int main(){ int n; int array[100000]; while (scanf("%d", &n), n) { int i, flag = 1; for (i = 0; i < n; i++) scanf("%d", &array[i]); for (i = 0; i < n; i++) if (i + 1 != array[array[i] - 1]) { flag = 0; break; } printf(flag ? "ambiguous\n" : "not ambiguous\n"); } return 0;}
0 0
- zoj 2795
- zoj 2795
- ZOJ-2795
- zoj 2795 Ambiguous permutations
- zoj 2795 Ambiguous permutations
- ZOJ 2795 Ambiguous permutations
- ZOJ 2795 Ambiguous permutations
- ZOJ - 2795 Ambiguous permutations
- ZOJ 2795-Ambiguous permutations
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- ZOJ
- Posix信号量
- 自定义Set
- Ural 1500Pass Licenses(状态压缩dfs)
- android 土豪体验器(精简版 )
- 黑马程序员------- 银行业务调度系统 -------
- ZOJ-2795
- 存储虚拟化平台 - EMC VPLEX
- 回调函数在Android监听的体现
- 黑马程序员-------SQLServer数据库基础知识
- 雨后池边
- Eclipse下配置Github安装环境注意事项
- 分页技术
- 小白dp uva 10304 - Optimal Binary Search Tree
- 望江