結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2016-04-03 01:52:17 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 694 bytes |
コンパイル時間 | 587 ms |
コンパイル使用メモリ | 83,944 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-02 12:32:49 |
合計ジャッジ時間 | 1,793 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 39 WA * 6 |
ソースコード
/* -*- coding: utf-8 -*- * * 312.cc: No.312 置換処理 - yukicoder */ #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<iostream> #include<string> #include<vector> #include<map> #include<set> #include<stack> #include<list> #include<queue> #include<deque> #include<algorithm> #include<numeric> #include<utility> #include<complex> #include<functional> using namespace std; /* constant */ /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { ll n; cin >> n; for (ll p = 3; p * p <= n; p++) if (n % p == 0) { printf("%lld\n", p); return 0; } printf("%lld\n", n); return 0; }