結果
| 問題 |
No.3069 Invisible Speedrun
|
| コンテスト | |
| ユーザー |
pengin_2000
|
| 提出日時 | 2025-03-21 22:02:15 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 237 bytes |
| コンパイル時間 | 923 ms |
| コンパイル使用メモリ | 24,576 KB |
| 実行使用メモリ | 26,436 KB |
| 平均クエリ数 | 586.74 |
| 最終ジャッジ日時 | 2025-03-21 22:02:31 |
| 合計ジャッジ時間 | 8,687 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 80 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d", &n);
| ^~~~~~~~~~~~~~~
main.c:13:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | scanf("%d", &res);
| ^~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main()
{
int n, res, i;
scanf("%d", &n);
for (i = 0; i < 2 * n; i++)
{
if (i % 2 > 0)
printf("D\n");
else
printf("L\n");
fflush(stdout);
scanf("%d", &res);
if (res != 0)
break;
}
return 0;
}
pengin_2000