結果

問題 No.532 Possible or Impossible
ユーザー akakimidoriakakimidori
提出日時 2017-06-23 23:00:33
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 19,968 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-03 03:27:39
合計ジャッジ時間 802 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘run’:
main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |   scanf("%d%d",&n,&m);
      |   ^~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>

void run(void){
  int n,m;
  scanf("%d%d",&n,&m);

  if((n==1 && m==0)||(n==2&&m==0)){
    printf("Impossible\n");
  } else {
    printf("Possible\n");
  }

  return;
}

int main(void){
  run();
  return 0;
}
0