結果
| 問題 | No.414 衝動 |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-28 16:50:37 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 344 bytes |
| 記録 | |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 37,348 KB |
| 最終ジャッジ日時 | 2026-02-22 13:29:47 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 5 TLE * 1 -- * 7 |
ソースコード
#include <stdio.h>
#include <stdbool.h>
void main(void) {
long int n = 0;
scanf("%ld",&n);
bool flg = false;
for(long int i = 2 ; i < n/2 ; i++){
if(n%i == 0 && n/i > 1){
printf("%lld %lld",i , n/i);
flg = true;
break;
}
}
if(!flg){
printf("1 %ld",n);
}
}
Maeda