結果

問題 No.2969 ローラン単項式の微分
ユーザー tails
提出日時 2024-11-29 21:54:20
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 19,456 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-29 21:54:21
合計ジャッジ時間 1,081 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | main(){
      | ^~~~
main.c: In function ‘main’:
main.c:3:9: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    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:3:9: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    3 |         scanf("%ld%ld",&n,&m);
      |         ^~~~~
main.c:3:9: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:5:17: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
    5 |                 printf("Yes\n%ld %ld\n",n,m-1);
      |                 ^~~~~~
main.c:5:17: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:5:17: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
main.c:5:17: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:7:17: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
    7 |                 puts("No");
      |                 ^~~~
main.c:7:17: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’

ソースコード

diff #
プレゼンテーションモードにする

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