結果

問題 No.3259 C++ → Rust → Python
ユーザー pengin_2000
提出日時 2025-09-06 13:03:33
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 711 ms
コンパイル使用メモリ 25,808 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-06 13:04:07
合計ジャッジ時間 1,614 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 %d", &l, &r);
      |         ^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
int main()
{
	int l, r;
	scanf("%d %d", &l, &r);
	int ans = 0;
	if (l < 296 && 296 <= r)
		ans++;
	if (l < 417 && 417 <= r)
		ans++;
	printf("%d\n", ans);
	return 0;
}
0