結果

問題 No.2969 ローラン単項式の微分
コンテスト
ユーザー 👑 tails
提出日時 2024-11-29 21:54:20
言語 C90
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 115 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 139 ms
コンパイル使用メモリ 28,484 KB
最終ジャッジ日時 2026-02-24 01:21:17
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:3:9: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    3 |         scanf("%ld%ld",&n,&m);
      |         ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | main(){
main.c:5:17: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
    5 |                 printf("Yes\n%ld %ld\n",n,m-1);
      |                 ^~~~~~
main.c:5:17: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #
raw source code

main(){
	long n,m;
	scanf("%ld%ld",&n,&m);
	if(n*=m){
		printf("Yes\n%ld %ld\n",n,m-1);
	}else{
		puts("No");
	}
}
0