結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-21 22:46:27 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 500 bytes |
| コンパイル時間 | 3,588 ms |
| コンパイル使用メモリ | 74,472 KB |
| 実行使用メモリ | 64,568 KB |
| 最終ジャッジ日時 | 2024-10-02 11:52:56 |
| 合計ジャッジ時間 | 6,947 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 WA * 5 |
ソースコード
import java.util.*;
public class HelloWorld
{
public static void main( String[] args )
{
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int keta = 0;
int i;
for(i= N; i>5;){
keta++;
i = i-2;
System.out.print("1");
}
if(i == 5){
System.out.print("71");
}
else if(i==4){
System.out.print("11");
}
else if(i==3){
System.out.print("7");
}
else if(i==2){
System.out.print("1");
}
}
}