結果
| 問題 |
No.414 衝動
|
| ユーザー |
notetonous
|
| 提出日時 | 2016-08-26 22:25:11 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 613 ms |
| コンパイル使用メモリ | 20,864 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-11-08 11:03:16 |
| 合計ジャッジ時間 | 3,252 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 TLE * 1 -- * 7 |
コンパイルメッセージ
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);
| ^~~~~~~~~~~~~~~~
ソースコード
#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;
}
notetonous