結果
| 問題 | No.3848 Max Under Cyclic Shifts |
| コンテスト | |
| ユーザー |
pengin_2000
|
| 提出日時 | 2026-12-04 23:15:58 |
| 言語 | C (gcc 15.3.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 16 ms / 2,000 ms |
| + 490µs | |
| コード長 | 353 bytes |
| 記録 | |
| コンパイル時間 | 219 ms |
| コンパイル使用メモリ | 41,404 KB |
| 実行使用メモリ | 9,908 KB |
| 最終ジャッジ日時 | 2026-12-04 23:16:03 |
| 合計ジャッジ時間 | 4,241 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 41 |
ソースコード
#include<stdio.h>
char a[200005][16];
int main()
{
long long int n, k;
scanf("%lld %lld", &n, &k);
long long int i, j;
for (i = 0; i < n; i++)
scanf("%s", a[i]);
char ans[16];
for (j = 0; j < k; j++)
{
ans[j] = '9';
for (i = 0; i < n; i++)
if (ans[j] > a[i][j])
ans[j] = a[i][j];
}
ans[k] = '\0';
printf("%s\n", ans);
return 0;
}
pengin_2000