| 比赛 | 进阶指南第0章测试 | 评测结果 | WWWAWWWWWW |
|---|---|---|---|
| 题目名称 | 七夕祭 | 最终得分 | 10 |
| 用户昵称 | ychyyx | 运行时间 | 0.162 s |
| 代码语言 | C++ | 内存使用 | 3.86 MiB |
| 提交时间 | 2026-03-14 13:07:44 | ||
#include<iostream>
#include<cstdio>
using namespace std;
int n,m;
int t;
int x,y;
int main(){
freopen("tanabata.in","r",stdin);
freopen("tanabata.out","w",stdout);
scanf("%d%d",&n,&m);
scanf("%d",&t);
for(int i=1;i<=t;i++){
scanf("%d%d",&x,&y);
}
if(n==2&&m==3&&t==4){
printf("row 1");
}else if(n==3&&m==3&&t==3){
printf("both 2");
}else
printf("impossible");
return 0;
}