Skip to content

Instantly share code, notes, and snippets.

View omerjerk's full-sized avatar
🎮
It's not as simple as it looks

Mohammad Umair omerjerk

🎮
It's not as simple as it looks
View GitHub Profile

Coding Blocks Judge API

judge.cb.lk/api/submission

Description: Judge a submission

Request type: POST

Form data:

Keys Description
package com.company;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import java.net.URL;
@omerjerk
omerjerk / gist:33c2a16381e7a0523823
Created March 23, 2015 19:26
Android Http Get example
private class NetworkTask extends AsyncTask<Void, Void, String> {
private String url;
private String parameter;
public NetworkTask(String url, String parameter) {
this.url = url;
this.parameter = parameter;
}
int T;
T = s_d();
while (T--) {
int N;
N = s_d();
int a[N];
llu sum = 0;
bool flag = false;
for (int i = 0; i < N; ++i) {
a[i] = s_d();