結果
| 問題 | No.83 最大マッチング |
| コンテスト | |
| ユーザー |
mos_13184925
|
| 提出日時 | 2018-06-30 12:42:44 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 385 bytes |
| 記録 | |
| コンパイル時間 | 1,714 ms |
| コンパイル使用メモリ | 82,084 KB |
| 実行使用メモリ | 46,616 KB |
| 最終ジャッジ日時 | 2026-03-21 15:59:33 |
| 合計ジャッジ時間 | 3,179 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 7 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int ans = 0;
if(n%2==0) ans+=1;
else ans+=7;
int m = (int)Math.ceil(n/2);
for(int i=1; i<m; i++) {
ans+=Math.pow(10, i);
}
System.out.println(ans);
}
}
mos_13184925