結果

問題 No.414 衝動
ユーザー notetonousnotetonous
提出日時 2016-08-26 22:25:11
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 219 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 20,992 KB
実行使用メモリ 8,224 KB
最終ジャッジ日時 2024-04-25 22:54:50
合計ジャッジ時間 2,970 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
8,096 KB
testcase_01 AC 0 ms
6,940 KB
testcase_02 AC 1 ms
6,944 KB
testcase_03 AC 12 ms
6,944 KB
testcase_04 AC 0 ms
6,944 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:18: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=]
    8 |       printf("%lld %lld\n",i,M/i);
      |               ~~~^         ~
      |                  |         |
      |                  |         int
      |                  long long int
      |               %d
main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |   scanf("%lld",&M);
      |   ^~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(){
  long long int M;
  scanf("%lld",&M);
  int i,j;
  for(i=2;i*i<=M;i++){
    if(M%i==0){
      printf("%lld %lld\n",i,M/i);
      return 0;
    }
  }
  printf("1 %lld\n",M);
  return 0;
}
0